SummaryPage-Module: Create Exception-Classes
This commit is contained in:
@@ -31,7 +31,7 @@ from datetime import datetime, timedelta
|
|||||||
import pywikibot
|
import pywikibot
|
||||||
import mwparserfromhell as mwparser
|
import mwparserfromhell as mwparser
|
||||||
|
|
||||||
from countrylist import CountryList
|
from countrylist import CountryList, CountryListError
|
||||||
|
|
||||||
class SummaryPage():
|
class SummaryPage():
|
||||||
"""
|
"""
|
||||||
@@ -325,3 +325,22 @@ class SummaryPageEntryTemplate():
|
|||||||
|
|
||||||
# If not returned True until now
|
# If not returned True until now
|
||||||
return False
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user