print "unknown command"

git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@13 f711b948-2313-0410-aaa9-d29f33439f0b
This commit is contained in:
henryk 2005-09-29 03:50:54 +00:00
parent 0fa0e7c415
commit 229ab9998b
1 changed files with 5 additions and 1 deletions

View File

@ -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"