Fri, 17 Feb 2017 22:10:34 +0100
Remove obsolete parameter 'frame' at user_exception function.
DebugClients/Python/DebugBase.py | file | annotate | diff | comparison | revisions | |
DebugClients/Python/DebugClientBase.py | file | annotate | diff | comparison | revisions |
--- a/DebugClients/Python/DebugBase.py Fri Feb 17 22:01:46 2017 +0100 +++ b/DebugClients/Python/DebugBase.py Fri Feb 17 22:10:34 2017 +0100 @@ -351,7 +351,7 @@ # statement. if not (frame.f_code.co_flags & CO_GENERATOR and arg[0] is StopIteration and arg[2] is None): - self.user_exception(frame, arg) + self.user_exception(arg) # Stop at the StopIteration or GeneratorExit exception when the # user has set stopframe in a generator by issuing a return # command, or a next/until command at the last statement in the @@ -359,7 +359,7 @@ elif (self.stopframe and frame is not self.stopframe and self.stopframe.f_code.co_flags & CO_GENERATOR and arg[0] in (StopIteration, GeneratorExit)): - self.user_exception(frame, arg) + self.user_exception(arg) return if event == 'c_call': @@ -767,12 +767,10 @@ self.isBroken = False self._dbgClient.unlockClient() - def user_exception(self, frame, excinfo, unhandled=False): + def user_exception(self, excinfo, unhandled=False): """ Public method reimplemented to report an exception to the debug server. - @param frame the frame object - @type frame object @param excinfo details about the exception @type tuple(Exception, excval object, traceback frame object) @keyparam unhandled flag indicating an uncaught exception
--- a/DebugClients/Python/DebugClientBase.py Fri Feb 17 22:01:46 2017 +0100 +++ b/DebugClients/Python/DebugClientBase.py Fri Feb 17 22:10:34 2017 +0100 @@ -1189,7 +1189,7 @@ @param excval data about the exception @param exctb traceback for the exception """ - self.mainThread.user_exception(None, (exctype, excval, exctb), True) + self.mainThread.user_exception((exctype, excval, exctb), True) def __interceptSignals(self): """