S

Traceback when trying to update node config from Movim

https://bhh.sh/658

This patch suppresses it, but not sure it's correct (and certainly not the "right way"):

diff -r 0b5233981671 sat_pubsub/pgsql_storage.py
--- a/sat_pubsub/pgsql_storage.py       Mon Aug 02 21:58:17 2021 +0200
+++ b/sat_pubsub/pgsql_storage.py       Mon Aug 16 15:08:59 2021 +0000
@@ -549,6 +549,9 @@
             else:
                 cursor.execute("DROP SEQUENCE IF EXISTS {seq_name}".format(seq_name = seq_name))

+    async def dummy(self):
+        return
+
     def setConfiguration(self, options):
         to_delete = []
         for option, value in options.items():
@@ -562,7 +565,7 @@
             del options.fields[option]

         if not options.fields:
-            return
+            return self.dummy()

         if options.get(const.OPT_MAX_ITEMS) == "max":
             # XXX: "max" is default value for config we must convert

Vous n'êtes pas connecté⋅e. Merci de vous connecter pour commenter.

id

391

author

Singpolyma

created

16/08/2021 15:12

updated

16/08/2021 15:12

labels
sat_pubsub
type
bug
status
queued
priority
normal
milestone
0.7
severity
normal