summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-07-25 17:19:13 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-08-08 17:33:59 +0200
commit170bd51387fc6c413833843242b15c4a59fb3860 (patch)
treecf05c131cfb8104af45e409efad40ee3f766962b
parent2ce931cb7a5a110f2fc7c97a0911b99f68bd966a (diff)
downloadslixmpp-170bd51387fc6c413833843242b15c4a59fb3860.tar.gz
slixmpp-170bd51387fc6c413833843242b15c4a59fb3860.tar.bz2
slixmpp-170bd51387fc6c413833843242b15c4a59fb3860.tar.xz
slixmpp-170bd51387fc6c413833843242b15c4a59fb3860.zip
Properly answer an error instead of tracebacking on unknown command execution.
-rw-r--r--slixmpp/plugins/xep_0050/adhoc.py1
1 files changed, 1 insertions, 0 deletions
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']: