diff --git a/countrylist.py b/countrylist.py index f1c3933..df62ac3 100644 --- a/countrylist.py +++ b/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!" )