aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Tzaperas <nick@nijotz.com>2015-02-10 20:24:28 -0800
committerNick Tzaperas <nick@nijotz.com>2015-02-10 20:24:28 -0800
commit666e12f570fd06feba4b3c0daa43b056a9613131 (patch)
tree977ddad1fc315eff8b93a4858f4ea6ff75aebb3d
parentd772cb4c42440b64398c0512c04d3a4731b2fdaa (diff)
downloadwee-slack-666e12f570fd06feba4b3c0daa43b056a9613131.tar.gz
Re-enabled command not found error message
-rw-r--r--wee_slack.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/wee_slack.py b/wee_slack.py
index f558817..bfbc0f2 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -669,10 +669,12 @@ def slack_command_cb(data, current_buffer, args):
function_name, args = a[0], " ".join(a[1:])
else:
function_name, args = a[0], None
-# try:
- cmds[function_name](current_buffer, args)
-# except KeyError:
-# w.prnt("", "Command not found or exception: "+function_name)
+
+ try:
+ command = cmds[function_name](current_buffer, args)
+ except KeyError:
+ w.prnt("", "Command not found: " + function_name)
+
return w.WEECHAT_RC_OK