From a9734c6146b6588244406578930cd4f0a061ad4c Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 22 Aug 2017 10:43:46 +0200 Subject: fixed exceptions --- lib/listcommands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/listcommands.py') 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) -- cgit v1.2.3-18-g5258