diff options
author | Santo Cariotti <sancn@live.com> | 2017-07-20 18:30:08 +0200 |
---|---|---|
committer | Santo Cariotti <sancn@live.com> | 2017-07-20 18:30:08 +0200 |
commit | b70d022b34f496b5ff05b9836cdb044f12e02c0e (patch) | |
tree | 1a0640830a4f430ac194ed83dac277e0b773a863 /lib | |
parent | e20e83ea4f9696d2702f7cfc3489a66f0c0957ee (diff) |
fixed errors
Diffstat (limited to 'lib')
-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': |