Skip to content

Commit 9610f3d

Browse files
authored
Merge pull request #12 from rwielk/iso-code-4.5.0
Use iso-code 4.5.0 via pycountries update, rm compatibility code for old pycountry versions
2 parents ce42bd3 + f000392 commit 9610f3d

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

geofeed_validator/fields/base.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@ class CountryField(Field):
138138

139139
def _check_errors(self, value):
140140
if value:
141-
try:
142-
if not self.to_python(value):
143-
return True
144-
except:
141+
if not self.to_python(value):
145142
return True
146143
return False
147144

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

167164
def _check_errors(self, value):
168165
if value:
169-
try:
170-
if not self.to_python(value):
171-
return True
172-
except:
166+
if not self.to_python(value):
173167
return True
174168
return False
175169

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pycountry>=16.11.27.1
1+
pycountry>=20.7.3
22
netaddr>=0.7.11

0 commit comments

Comments
 (0)