From 229ab9998b3f46685a475ffa961364ead30970a1 Mon Sep 17 00:00:00 2001 From: henryk Date: Thu, 29 Sep 2005 03:50:54 +0000 Subject: [PATCH] print "unknown command" git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@13 f711b948-2313-0410-aaa9-d29f33439f0b --- cyberflex-shell.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cyberflex-shell.py b/cyberflex-shell.py index e5b7cd2..e677027 100755 --- a/cyberflex-shell.py +++ b/cyberflex-shell.py @@ -49,7 +49,8 @@ while line != "exit": print break - if line.strip() == "": + line = line.strip() + if line == "": continue parts = line.split() @@ -71,3 +72,6 @@ while line != "exit": except Exception: exctype, value = sys.exc_info()[:2] print "%s: %s" % (exctype, value) + + else: + print "Unknown command"