Use the correct API (since direct returns break Python 2 imports)

This commit is contained in:
Itamar Turner-Trauring 2022-02-11 15:02:14 -05:00
parent abf3048ab3
commit 5aa00abc3d

View File

@ -1042,7 +1042,7 @@ class _FakeRemoteReference(object):
def callRemote(self, action, *args, **kwargs):
try:
result = yield getattr(self.local_object, action)(*args, **kwargs)
return result
defer.returnValue(result)
except HTTPClientException as e:
raise RemoteException(e.args)