changeset 472:d993e8b0fd60

psql: return Deferred is not options field is specified in `setConfiguration`: fix 391
author Goffi <goffi@goffi.org>
date Thu, 21 Oct 2021 18:12:16 +0200
parents ed9e12701e0f
children dc53c6f020bc
files sat_pubsub/pgsql_storage.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_pubsub/pgsql_storage.py	Thu Oct 21 17:31:01 2021 +0200
+++ b/sat_pubsub/pgsql_storage.py	Thu Oct 21 18:12:16 2021 +0200
@@ -598,7 +598,7 @@
             del options.fields[option]
 
         if not options.fields:
-            return
+            return defer.succeed(None)
 
         if options.get(const.OPT_MAX_ITEMS) == "max":
             # XXX: "max" is default value for config we must convert