From 5aa00abc3da0624541fe9e74aa61355cd59af8c0 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Fri, 11 Feb 2022 15:02:14 -0500 Subject: [PATCH] Use the correct API (since direct returns break Python 2 imports) --- src/allmydata/storage_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/storage_client.py b/src/allmydata/storage_client.py index 17a6f79a5..c2e26b4b6 100644 --- a/src/allmydata/storage_client.py +++ b/src/allmydata/storage_client.py @@ -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)