summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/commands.py4
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':