[commit-gajim] r11250 - trunk/src/common
asterix at gajim.org
asterix at gajim.org
Wed Apr 29 19:34:27 CEST 2009
Author: asterix
Date: 2009-04-29 19:34:27 +0200 (Wed, 29 Apr 2009)
New Revision: 11250
Modified:
trunk/src/common/connection_handlers.py
Log:
prevent traceback when we get a presence from an invalid JID
Modified: trunk/src/common/connection_handlers.py
===================================================================
--- trunk/src/common/connection_handlers.py 2009-04-29 07:46:24 UTC (rev 11249)
+++ trunk/src/common/connection_handlers.py 2009-04-29 17:34:27 UTC (rev 11250)
@@ -2075,7 +2075,7 @@
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())
More information about the Commits
mailing list