Browse Source

Raise Exception instead of returning False in CountryList.__init__()

since returning False is no valid python construct
develop
Jonathan Golder 6 years ago
parent
commit
b6c7a74519
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      countrylist.py

+ 2
- 1
countrylist.py View File

@ -66,7 +66,8 @@ class CountryList():
# Check if page exits
if not self.page.exists():
return False
raise CountryListError( "CountryList " +
str(wikilink.title) + " does not exists!" )
# Initialise attributes
__attr = ( "wikicode", "entry", "chartein", "_chartein_raw",


Loading…
Cancel
Save