Browse Source

Bug in function to detect the year from Pagetitle, returning whole title

Missing param added
Explicit int casting will throw errors in future if regex fails
develop
Jonathan Golder 7 years ago
parent
commit
9d471bee20
  1. 2
      countrylist.py

2
countrylist.py

@ -104,7 +104,7 @@ class CountryList():
# We matched something
if match:
self.year = match.group()
self.year = int(match.group(1))
else:
raise CountryListError( "CountryList year is errorneous!" )

Loading…
Cancel
Save