Repository: qpid-proton Updated Branches: refs/heads/master f023c63b3 -> 4546829be
fixed an edgecase of error detection Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/4546829b Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/4546829b Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/4546829b Branch: refs/heads/master Commit: 4546829beb0fa982c8047562d5a4290e6539f0be Parents: f023c63 Author: Rafael Schloming <[email protected]> Authored: Wed Jan 21 12:52:32 2015 -0500 Committer: Rafael Schloming <[email protected]> Committed: Wed Jan 21 12:52:32 2015 -0500 ---------------------------------------------------------------------- proton-c/bindings/python/proton/reactors.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/4546829b/proton-c/bindings/python/proton/reactors.py ---------------------------------------------------------------------- diff --git a/proton-c/bindings/python/proton/reactors.py b/proton-c/bindings/python/proton/reactors.py index 493af71..5e24269 100644 --- a/proton-c/bindings/python/proton/reactors.py +++ b/proton-c/bindings/python/proton/reactors.py @@ -908,10 +908,12 @@ class Reactor(Wrapper): pn_reactor_start(self._impl) while pn_reactor_work(self._impl, 3142): if self.errors: - for exc, value, tb in self.errors[:-1]: - traceback.print_exception(exc, value, tb) - exc, value, tb = self.errors[-1] - raise exc, value, tb + break + if self.errors: + for exc, value, tb in self.errors[:-1]: + traceback.print_exception(exc, value, tb) + exc, value, tb = self.errors[-1] + raise exc, value, tb pn_reactor_stop(self._impl) def schedule(self, delay, task): --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
