Skip to content

Commit

Permalink
Merge pull request #12 from rwielk/iso-code-4.5.0
Browse files Browse the repository at this point in the history
Use iso-code 4.5.0 via pycountries update, rm compatibility code for old pycountry versions
  • Loading branch information
rwielk authored May 17, 2021
2 parents ce42bd3 + f000392 commit 9610f3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions geofeed_validator/fields/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,7 @@ class CountryField(Field):

def _check_errors(self, value):
if value:
try:
if not self.to_python(value):
return True
except:
if not self.to_python(value):
return True
return False

Expand All @@ -166,10 +163,7 @@ class SubdivisionField(Field):

def _check_errors(self, value):
if value:
try:
if not self.to_python(value):
return True
except:
if not self.to_python(value):
return True
return False

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pycountry>=16.11.27.1
pycountry>=20.7.3
netaddr>=0.7.11

0 comments on commit 9610f3d

Please sign in to comment.