From 170bd51387fc6c413833843242b15c4a59fb3860 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 25 Jul 2015 17:19:13 +0100 Subject: [PATCH] Properly answer an error instead of tracebacking on unknown command execution. --- slixmpp/plugins/xep_0050/adhoc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slixmpp/plugins/xep_0050/adhoc.py b/slixmpp/plugins/xep_0050/adhoc.py index e6ef8333..2ecbfea6 100644 --- a/slixmpp/plugins/xep_0050/adhoc.py +++ b/slixmpp/plugins/xep_0050/adhoc.py @@ -216,6 +216,7 @@ class XEP_0050(BasePlugin): name, handler = self.commands.get(key, ('Not found', None)) if not handler: log.debug('Command not found: %s, %s', key, self.commands) + raise XMPPError('item-not-found') payload = [] for stanza in iq['command']['substanzas']: