summaryrefslogtreecommitdiff
path: root/src/multiuserchat.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-06 14:38:00 +0100
committermathieui <mathieui@mathieui.net>2011-11-06 14:38:00 +0100
commitfc20de76ffef3982e59bd004d1e7c9f3c6e0d4bc (patch)
treeca96f90684590b6959ccaeaf62a56fe6feff6c3d /src/multiuserchat.py
parentfbb465a092a192821fea55eae2c7a918edf9fd59 (diff)
downloadpoezio-fc20de76ffef3982e59bd004d1e7c9f3c6e0d4bc.tar.gz
poezio-fc20de76ffef3982e59bd004d1e7c9f3c6e0d4bc.tar.bz2
poezio-fc20de76ffef3982e59bd004d1e7c9f3c6e0d4bc.tar.xz
poezio-fc20de76ffef3982e59bd004d1e7c9f3c6e0d4bc.zip
Should really fix #2284 and some other tbs
Diffstat (limited to 'src/multiuserchat.py')
-rw-r--r--src/multiuserchat.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/multiuserchat.py b/src/multiuserchat.py
index 264f0e4a..ac910837 100644
--- a/src/multiuserchat.py
+++ b/src/multiuserchat.py
@@ -65,7 +65,10 @@ def leave_groupchat(xmpp, jid, own_nick, msg):
"""
Leave the groupchat
"""
- xmpp.plugin['xep_0045'].leaveMUC(jid, own_nick, msg)
+ try:
+ xmpp.plugin['xep_0045'].leaveMUC(jid, own_nick, msg)
+ except KeyError:
+ log.debug("WARNING: in muc.leave_groupchat: could not leave the room")
def set_user_role(xmpp, jid, nick, reason, role):
"""