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:
parent
0fa0e7c415
commit
229ab9998b
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue