DebugClients/Python/DebugBase.py

changeset 57
81326a94fdca
parent 15
f6ccc31d6e72
child 790
2c0ea0163ef4
child 792
a13346916170
equal deleted inserted replaced
56:3bd61d38c924 57:81326a94fdca
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

eric ide

mercurial