changeset 29472b5ba6e0 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=29472b5ba6e0
description: prevent traceback

diffstat:

 src/common/connection_handlers_events.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r f78ccd449879 -r 29472b5ba6e0 src/common/connection_handlers_events.py
--- a/src/common/connection_handlers_events.py  Thu Jan 06 21:01:43 2011 +0100
+++ b/src/common/connection_handlers_events.py  Sun Jan 09 20:58:58 2011 +0100
@@ -881,7 +881,10 @@
         # We may ask it to real jid in gui part.
         self.status_code = []
         ns_muc_user_x = self.stanza.getTag('x', namespace=xmpp.NS_MUC_USER)
-        destroy = ns_muc_user_x.getTag('destroy')
+        if ns_muc_user_x:
+            destroy = ns_muc_user_x.getTag('destroy')
+        else:
+            destroy = None
         if ns_muc_user_x and destroy:
             # Room has been destroyed. see
             # http://www.xmpp.org/extensions/xep-0045.html#destroyroom
_______________________________________________
Commits mailing list
Commits@gajim.org
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to