DebugClients/Python/DebugBase.py

changeset 57
81326a94fdca
parent 15
f6ccc31d6e72
child 790
2c0ea0163ef4
child 792
a13346916170
--- 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

eric ide

mercurial