Repository: qpid-proton Updated Branches: refs/heads/examples 51a757bc4 -> 020bf1694
Fix for change in unhandled signature Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/020bf169 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/020bf169 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/020bf169 Branch: refs/heads/examples Commit: 020bf169477c2096131c077c893e075705931959 Parents: 51a757b Author: Gordon Sim <[email protected]> Authored: Fri Nov 14 13:24:00 2014 +0000 Committer: Gordon Sim <[email protected]> Committed: Fri Nov 14 13:24:00 2014 +0000 ---------------------------------------------------------------------- tutorial/proton_events.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/020bf169/tutorial/proton_events.py ---------------------------------------------------------------------- diff --git a/tutorial/proton_events.py b/tutorial/proton_events.py index 8dbf793..d80691b 100644 --- a/tutorial/proton_events.py +++ b/tutorial/proton_events.py @@ -458,7 +458,8 @@ class ScopedHandler(Handler): "pn_delivery": ["delivery", "link", "session", "connection"] } - def on_unhandled(self, event): + def on_unhandled(self, method, args): + event = args[0] if event.type in [Event.CONNECTION_FINAL, Event.SESSION_FINAL, Event.LINK_FINAL]: return objects = [getattr(event, attr) for attr in self.scopes.get(event.clazz, [])] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
