# HG changeset patch # User catherine@dellzilla # Date 1237221159 14400 # Node ID dcc5f871a5b6bf2f390ba77dc51163e43ae55ab9 # Parent e9091d9a3a60d156ff35475bcd2cfa26e838d9bb more postparse hook work diff -r e9091d9a3a60 -r dcc5f871a5b6 cmd2.py --- a/cmd2.py Mon Mar 16 03:30:30 2009 -0400 +++ b/cmd2.py Mon Mar 16 12:32:39 2009 -0400 @@ -545,7 +545,11 @@ print e return 0 - (stop, statement) = self.postparsing_precmd(statement) + try: + (stop, statement) = self.postparsing_precmd(statement) + except Exception, e: + print str(e) + return 0 if stop: return self.postparsing_postcmd(stop)