Skip to content
Snippets Groups Projects
Commit 1a8def33 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent traceback when we get a presence from an invalid JID

parent 533e36c2
No related branches found
No related tags found
No related merge requests found
......@@ -2075,7 +2075,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
try:
who = helpers.get_full_jid_from_iq(prs)
except Exception:
if prs.getTag('error').getTag('jid-malformed'):
if prs.getTag('error') and prs.getTag('error').getTag('jid-malformed'):
# wrong jid, we probably tried to change our nick in a room to a non
# valid one
who = str(prs.getFrom())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment