From 666e12f570fd06feba4b3c0daa43b056a9613131 Mon Sep 17 00:00:00 2001 From: Nick Tzaperas Date: Tue, 10 Feb 2015 20:24:28 -0800 Subject: Re-enabled command not found error message --- wee_slack.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'wee_slack.py') 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 -- cgit