summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-07-20 10:32:13 +0200
committerSanto Cariotti <sancn@live.com>2017-07-20 10:32:13 +0200
commitd5fbfa71a49851bbf544f8d6ea8cf7eb75fb102c (patch)
tree54e78d750321d4bc1d5432fe644bb50cc2af803d
parentbdf83e42d1bca4ffac3a03bfdbb27d06db74dc88 (diff)
fixed info command
-rw-r--r--__pycache__/classes.cpython-35.pycbin1480 -> 1463 bytes
-rw-r--r--app.py4
2 files changed, 3 insertions, 1 deletions
diff --git a/__pycache__/classes.cpython-35.pyc b/__pycache__/classes.cpython-35.pyc
index 2ac1e7c..eb7b498 100644
--- a/__pycache__/classes.cpython-35.pyc
+++ b/__pycache__/classes.cpython-35.pyc
Binary files differ
diff --git a/app.py b/app.py
index be6b0db..2dc8f66 100644
--- a/app.py
+++ b/app.py
@@ -33,8 +33,10 @@ class Stout(Commands):
try:
if cmd[0] == 'info' and count == 1:
print(ListCommands.info['info'])
- else:
+ elif cmd[0] == 'info' and count == 2:
print(ListCommands.info[cmd[1]])
+ else:
+ raise KeyError
except (KeyError, IndexError):
ListCommands.err('keyword')
else: