Commit 3519e845 authored by Lance Stout's avatar Lance Stout

Apparently twisted fills in inet_pton on Windows and uses different exceptions.

parent ed481857
......@@ -202,7 +202,7 @@ def _validate_domain(domain):
socket.inet_pton(socket.AF_INET6, domain.strip('[]'))
domain = '[%s]' % domain.strip('[]')
ip_addr = True
except socket.error:
except (socket.error, ValueError):
pass
if not ip_addr:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment