566 @param exctb traceback for the exception |
566 @param exctb traceback for the exception |
567 @param unhandled flag indicating an uncaught exception |
567 @param unhandled flag indicating an uncaught exception |
568 """ |
568 """ |
569 if exctype in [SystemExit, bdb.BdbQuit]: |
569 if exctype in [SystemExit, bdb.BdbQuit]: |
570 atexit._run_exitfuncs() |
570 atexit._run_exitfuncs() |
571 self._dbgClient.progTerminated(excval) |
571 if isinstance(excval, int): |
|
572 self._dbgClient.progTerminated(excval) |
|
573 else: |
|
574 self._dbgClient.progTerminated(excval.code) |
572 return |
575 return |
573 |
576 |
574 elif exctype in [SyntaxError, IndentationError]: |
577 elif exctype in [SyntaxError, IndentationError]: |
575 try: |
578 try: |
576 message, (filename, linenr, charnr, text) = excval |
579 message, (filename, linenr, charnr, text) = excval |