From d5fbfa71a49851bbf544f8d6ea8cf7eb75fb102c Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 20 Jul 2017 10:32:13 +0200 Subject: fixed info command --- __pycache__/classes.cpython-35.pyc | Bin 1480 -> 1463 bytes app.py | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/__pycache__/classes.cpython-35.pyc b/__pycache__/classes.cpython-35.pyc index 2ac1e7c..eb7b498 100644 Binary files a/__pycache__/classes.cpython-35.pyc and b/__pycache__/classes.cpython-35.pyc 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: -- cgit v1.2.3-18-g5258