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 +