diff options
| author | Ken Giusti <kgiusti@apache.org> | 2014-07-29 13:09:28 +0000 |
|---|---|---|
| committer | Ken Giusti <kgiusti@apache.org> | 2014-07-29 13:09:28 +0000 |
| commit | f240265962308008a837b15309f7b4fe62d94ac7 (patch) | |
| tree | 50bd7839c2f5209be57e6d5d49fffd402c919805 | |
| parent | 2db948b9045d5c13919db8db3bfeca3712203a56 (diff) | |
| download | qpid-python-f240265962308008a837b15309f7b4fe62d94ac7.tar.gz | |
QPID-5932: tweak patch to support older versions of python.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1614334 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/extras/qmf/src/py/qmf/console.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/extras/qmf/src/py/qmf/console.py b/qpid/extras/qmf/src/py/qmf/console.py index affa9cbdad..67abf351d0 100644 --- a/qpid/extras/qmf/src/py/qmf/console.py +++ b/qpid/extras/qmf/src/py/qmf/console.py @@ -1509,7 +1509,9 @@ class Session: Methods are now invoked on the object itself. """ objs = self.getObjects(_objectId=objectId) - return objs[0]._sendMethodRequest(name, argList, {}) if objs else None + if objs: + return objs[0]._sendMethodRequest(name, argList, {}) + return None def _newPackageCallback(self, pname): """ |
