summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-12-29 15:17:15 -0800
committerLance Stout <lancestout@gmail.com>2012-12-29 15:17:15 -0800
commit597eb1779c497ad850fe3c03fd480fea5c9ef7ea (patch)
tree43a1071b40563a782450fc8482ffedea36d4873e /sleekxmpp/xmlstream
parent3519e845a35d6ac1fdd07091b99f02a8a391147a (diff)
downloadslixmpp-597eb1779c497ad850fe3c03fd480fea5c9ef7ea.tar.gz
slixmpp-597eb1779c497ad850fe3c03fd480fea5c9ef7ea.tar.bz2
slixmpp-597eb1779c497ad850fe3c03fd480fea5c9ef7ea.tar.xz
slixmpp-597eb1779c497ad850fe3c03fd480fea5c9ef7ea.zip
Fix other instance of inet_pton usage.
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r--sleekxmpp/xmlstream/resolver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/resolver.py b/sleekxmpp/xmlstream/resolver.py
index 394daa64..16f8a7ad 100644
--- a/sleekxmpp/xmlstream/resolver.py
+++ b/sleekxmpp/xmlstream/resolver.py
@@ -113,7 +113,7 @@ def resolve(host, port=None, service=None, proto='tcp',
if hasattr(socket, 'inet_pton'):
ipv6 = socket.inet_pton(socket.AF_INET6, host)
yield (host, host, port)
- except socket.error:
+ except (socket.error, ValueError):
pass
# If no service was provided, then we can just do A/AAAA lookups on the