summaryrefslogtreecommitdiff
path: root/lib/listcommands.py
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-08-22 10:43:46 +0200
committerSanto Cariotti <sancn@live.com>2017-08-22 10:43:46 +0200
commita9734c6146b6588244406578930cd4f0a061ad4c (patch)
treeeec168a5d7892d6d64357532f6ecf166c7f57ae7 /lib/listcommands.py
parent8ee6331c0e8105134c0ac29cd4fceecd2968f89b (diff)
fixed exceptions
Diffstat (limited to 'lib/listcommands.py')
-rw-r--r--lib/listcommands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/listcommands.py b/lib/listcommands.py
index 987aeb5..869f475 100644
--- a/lib/listcommands.py
+++ b/lib/listcommands.py
@@ -27,9 +27,9 @@ Se utilizzato con il "flag" i, si possono visualizzare le info: get i host, get
@staticmethod
def err(err, info = ''):
- if err == 'keyword':
+ if err == 'KeyError':
sys.stderr.write(RED + 'keyword inesistente\n' + BLACK)
- elif err == 'wrong':
+ elif err == 'IndexError':
sys.stderr.write(RED + 'sintassi comando errata\n' + BLACK)
elif err == 'personal':
sys.stderr.write(RED + str(info) + '\n' + BLACK)