--- a/DebugClients/Python/DebugBase.py Thu Jan 14 07:59:02 2010 +0000 +++ b/DebugClients/Python/DebugBase.py Thu Jan 14 17:27:31 2010 +0000 @@ -568,7 +568,10 @@ """ if exctype in [SystemExit, bdb.BdbQuit]: atexit._run_exitfuncs() - self._dbgClient.progTerminated(excval) + if isinstance(excval, int): + self._dbgClient.progTerminated(excval) + else: + self._dbgClient.progTerminated(excval.code) return elif exctype in [SyntaxError, IndentationError]: @@ -716,4 +719,4 @@ @return last debugger event (string) """ - return self.__event \ No newline at end of file + return self.__event