diff options
author | Lance Stout <lancestout@gmail.com> | 2012-12-21 13:43:38 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-12-21 13:43:38 -0800 |
commit | 3519e845a35d6ac1fdd07091b99f02a8a391147a (patch) | |
tree | cb54df4d1e138f0c8077f7d1fa417089fef2e56e /sleekxmpp/jid.py | |
parent | ed481857326606603f70ef06dbd5a4b48d1b9510 (diff) | |
download | slixmpp-3519e845a35d6ac1fdd07091b99f02a8a391147a.tar.gz slixmpp-3519e845a35d6ac1fdd07091b99f02a8a391147a.tar.bz2 slixmpp-3519e845a35d6ac1fdd07091b99f02a8a391147a.tar.xz slixmpp-3519e845a35d6ac1fdd07091b99f02a8a391147a.zip |
Apparently twisted fills in inet_pton on Windows and uses different exceptions.
Diffstat (limited to 'sleekxmpp/jid.py')
-rw-r--r-- | sleekxmpp/jid.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/jid.py b/sleekxmpp/jid.py index bf0c1970..752c3210 100644 --- a/sleekxmpp/jid.py +++ b/sleekxmpp/jid.py @@ -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: |