complete the Exception's list when catching JID error:

- Twisted JID constructor raises not only jid.InvalidFormat but also RuntimeError and AttributeError
This commit is contained in:
souliane 2015-12-15 13:30:47 +01:00
commit a6a967b2f0

View file

@ -782,7 +782,7 @@ class XEP_0065(object):
if not all((host, jid, port)):
raise KeyError
jid_ = jid.JID(jid_)
except (StopIteration, KeyError, RuntimeError, jid.InvalidFormat):
except (StopIteration, KeyError, RuntimeError, jid.InvalidFormat, AttributeError):
log.warning(u"Invalid proxy data received from {}".format(proxy.full()))
notFound(server)