changeset 177:f2b1643b5173 0.4.4

argh, zero-arg commands were dying
author catherine@dellzilla
date Fri, 12 Dec 2008 16:10:38 -0500
parents 645467c0d3f9
children 4e1ed90962bc
files cmd2.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmd2.py	Fri Dec 12 15:29:28 2008 -0500
+++ b/cmd2.py	Fri Dec 12 16:10:38 2008 -0500
@@ -458,7 +458,7 @@
             print e
             return 0
 
-        if not statement:
+        if not statement.parsed.command:
             return 0
         
         statekeeper = None