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
This commit is contained in:
2016-03-09 17:21:24 +01:00
parent 16a774fae5
commit 9d471bee20

View File

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