summaryrefslogtreecommitdiff
path: root/sleekxmpp/jid.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-12-21 13:43:38 -0800
committerLance Stout <lancestout@gmail.com>2012-12-21 13:43:38 -0800
commit3519e845a35d6ac1fdd07091b99f02a8a391147a (patch)
treecb54df4d1e138f0c8077f7d1fa417089fef2e56e /sleekxmpp/jid.py
parented481857326606603f70ef06dbd5a4b48d1b9510 (diff)
downloadslixmpp-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.py2
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: