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 6 years ago
parent
commit
9d471bee20
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      countrylist.py

+ 1
- 1
countrylist.py View File

@ -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