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:
parent
3b84fc1765
commit
a6a967b2f0
1 changed files with 6 additions and 6 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue