summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-08-21 11:55:30 +0000
committerRafael H. Schloming <rhs@apache.org>2009-08-21 11:55:30 +0000
commit8edf0300984cee8d2cba28b0261102fa0ec371e9 (patch)
tree89f491c60cb4bbc3ab771adaf67818873e6d8428
parentf34769235c625d5afe031076b6738f6ae672c3ff (diff)
downloadqpid-python-8edf0300984cee8d2cba28b0261102fa0ec371e9.tar.gz
fixed attribute error
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@806514 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--python/qpid/session.py5
1 files changed, 3 insertions, 2 deletions
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)