Mercurial > libervia-backend
diff src/plugins/plugin_xep_0065.py @ 1742:244a605623d6
complete the Exception's list when catching JID error:
- Twisted JID constructor raises not only jid.InvalidFormat but also RuntimeError and AttributeError
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 15 Dec 2015 13:30:47 +0100 |
parents | fd143578fe89 |
children | abd6d6f89006 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0065.py Fri Dec 11 09:12:11 2015 +0100 +++ b/src/plugins/plugin_xep_0065.py Tue Dec 15 13:30:47 2015 +0100 @@ -782,7 +782,7 @@ 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)