diff options
Diffstat (limited to 'lib/commands.py')
-rw-r--r-- | lib/commands.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/commands.py b/lib/commands.py index a3d439a..95f3563 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -27,9 +27,11 @@ class Commands(object): print('Ok') elif cmd[1] is not ListCommands.commands['set']: - raise IndexError + raise KeyError except IndexError: ListCommands.err('wrong') + except KeyError: + ListCommands.err('keyword') except PersonalError as e: ListCommands.err('personal', e.value) elif what == 'get': |