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:
@@ -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!" )
|
||||
|
||||
Reference in New Issue
Block a user