Skip to content

Commit

Permalink
Also add IOError to the list of acceptable exceptions (for compat rea…
Browse files Browse the repository at this point in the history
…sons)
  • Loading branch information
ralphje committed Apr 8, 2016
1 parent 4d00404 commit 99b549d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internationalflavor/vat_number/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _check_vies_suds(self, country, rest):
c = suds.client.Client(VIES_CHECK_WSDL, timeout=3)
res = c.service.checkVat(country, rest)
valid = res.valid is not False
except (suds.WebFault, suds.transport.TransportError, socket.timeout, OSError) as e:
except (suds.WebFault, suds.transport.TransportError, socket.timeout, OSError, IOError) as e:
self._wsdl_exception = e
else:
if not valid:
Expand Down

0 comments on commit 99b549d

Please sign in to comment.