From f240265962308008a837b15309f7b4fe62d94ac7 Mon Sep 17 00:00:00 2001 From: Ken Giusti Date: Tue, 29 Jul 2014 13:09:28 +0000 Subject: 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 --- qpid/extras/qmf/src/py/qmf/console.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qpid/extras') 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): """ -- cgit v1.2.1