diff options
author | Rafael H. Schloming <rhs@apache.org> | 2009-08-21 11:55:30 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2009-08-21 11:55:30 +0000 |
commit | 4d574e96b15c0ddc82f256700dd8a5f7ea22b66f (patch) | |
tree | 87d41de0ddbaec914a5f6ad5b6c34cf5b49f2a38 | |
parent | 7d955b5b4f78981b7bf596c70327b5a909bdfb15 (diff) | |
download | qpid-python-4d574e96b15c0ddc82f256700dd8a5f7ea22b66f.tar.gz |
fixed attribute error
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@806514 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/python/qpid/session.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/python/qpid/session.py b/qpid/python/qpid/session.py index 22a052754b..071d4dc817 100644 --- a/qpid/python/qpid/session.py +++ b/qpid/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) |