diff sat/tools/utils.py @ 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 bfa1bde97f48
children e86b71b1aa31
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):