Mercurial > python-cmd2
changeset 246:2e37155d2b95
history fix
author | catherine@Elli.myhome.westell.com |
---|---|
date | Thu, 26 Mar 2009 23:13:49 -0400 |
parents | 2cda5a817e5a |
children | 3db4166a54ce |
files | cmd2.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd2.py Wed Mar 25 19:15:43 2009 -0400 +++ b/cmd2.py Thu Mar 26 23:13:49 2009 -0400 @@ -588,7 +588,8 @@ except Exception, e: print e return 0 - + if statement.parsed.command not in self.excludeFromHistory: + self.history.append(statement.parsed.raw) try: (stop, statement) = self.postparsing_precmd(statement) except Exception, e: @@ -642,9 +643,6 @@ print 'Elapsed: %s' % str(datetime.datetime.now() - timestart) except Exception, e: print e - try: - if statement.parsed.command not in self.excludeFromHistory: - self.history.append(statement.parsed.raw) finally: if statekeeper: if statement.parsed.output and not statement.parsed.outputTo: