changeset afeef7ec21ab in /home/hg/repos/gajim details:http://hg.gajim.org/gajim?cmd=changeset;node=afeef7ec21ab description: prevent traceback when a room is destroyed. Fixes #5194
diffstat: src/common/connection_handlers.py | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diffs (23 lines): diff -r 7e5938fe32c5 -r afeef7ec21ab src/common/connection_handlers.py --- a/src/common/connection_handlers.py Fri Jul 31 17:11:55 2009 +0200 +++ b/src/common/connection_handlers.py Sat Aug 01 18:28:25 2009 +0200 @@ -2329,12 +2329,13 @@ r = destroy.getTagData('reason') if r: reason += ' (%s)' % r - try: - jid = helpers.parse_jid(destroy.getAttr('jid')) - except common.helpers.InvalidFormat: - pass - if jid: - reason += '\n' + _('You can join this room instead: %s') % jid + if destroy.getAttr('jid'): + try: + jid = helpers.parse_jid(destroy.getAttr('jid')) + reason += '\n' + _('You can join this room instead: %s') \ + % jid + except common.helpers.InvalidFormat: + pass statusCode = ['destroyed'] else: reason = prs.getReason() _______________________________________________ Commits mailing list Commits@gajim.org http://lists.gajim.org/cgi-bin/listinfo/commits