Fixed a bug in the Python2 debugger.

Thu, 14 Jan 2010 17:27:31 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 14 Jan 2010 17:27:31 +0000
changeset 57
81326a94fdca
parent 56
3bd61d38c924
child 58
37f0444c3479

Fixed a bug in the Python2 debugger.

DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
--- 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