changeset 3239:4396bf14f5fc

core (tools/utils): fixed return value for non async callbacks
author Goffi <goffi@goffi.org>
date Mon, 30 Mar 2020 19:59:14 +0200
parents 199fc4c551e9
children d85b68e44297
files sat/tools/utils.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/tools/utils.py	Mon Mar 30 19:59:12 2020 +0200
+++ b/sat/tools/utils.py	Mon Mar 30 19:59:14 2020 +0200
@@ -110,7 +110,7 @@
         elif isinstance(ret, failure.Failure):
             return defer.fail(ret)
         else:
-            return ret
+            return defer.succeed(ret)
 
 
 def xmpp_date(timestamp=None, with_time=True):