summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/multiuserchat.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/multiuserchat.py b/src/multiuserchat.py
index 10ea0daf..832b97a7 100644
--- a/src/multiuserchat.py
+++ b/src/multiuserchat.py
@@ -81,4 +81,8 @@ def eject_user(xmpp, jid, nick, reason):
query.append(item)
iq.append(query)
iq['to'] = jid
- return iq.send()
+ try:
+ iq.send()
+ except Exception as e:
+ return e.iq
+