From 8edf0300984cee8d2cba28b0261102fa0ec371e9 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Fri, 21 Aug 2009 11:55:30 +0000 Subject: fixed attribute error git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@806514 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/session.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python/qpid') diff --git a/python/qpid/session.py b/python/qpid/session.py index 22a052754b..071d4dc817 100644 --- a/python/qpid/session.py +++ b/python/qpid/session.py @@ -146,7 +146,8 @@ class Session(command_invoker()): if self._closing: raise SessionClosed() - if self.channel == None: + ch = self.channel + if ch == None: raise SessionDetached() if op == MessageTransfer: @@ -162,7 +163,7 @@ class Session(command_invoker()): cmd = op(*args, **kwargs) cmd.sync = self.auto_sync or cmd.sync self.need_sync = not cmd.sync - cmd.channel = self.channel.id + cmd.channel = ch.id if op.RESULT: result = Future(exception=SessionException) -- cgit v1.2.1