Browse Source

SummaryPage-Module: Create Exception-Classes

develop
Jonathan Golder 9 years ago
parent
commit
fec2143203
  1. 21
      summarypage.py

21
summarypage.py

@ -31,7 +31,7 @@ from datetime import datetime, timedelta
import pywikibot
import mwparserfromhell as mwparser
from countrylist import CountryList
from countrylist import CountryList, CountryListError
class SummaryPage():
"""
@ -325,3 +325,22 @@ class SummaryPageEntryTemplate():
# If not returned True until now
return False
class SummaryPageError( Exception ):
"""
Handles errors occuring in class SummaryPage
"""
pass
class SummaryPageEntryError( SummaryPageError ):
"""
Handles errors occuring in class SummaryPageEntry
"""
pass
class SummaryPageEntryTemplateError( SummaryPageError ):
"""
Handles errors occuring in class SummaryPageEntryTemplate
"""
pass

Loading…
Cancel
Save