changeset 62:c8b468a96c5c

wokkel (pubsub): fixed recursive reference in disco items
author Goffi <goffi@goffi.org>
date Tue, 19 Feb 2019 09:34:05 +0100
parents 1245269f9aab
children cdeda6294bfc
files sat_tmp/wokkel/pubsub.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_tmp/wokkel/pubsub.py	Wed Jan 16 09:17:57 2019 +0100
+++ b/sat_tmp/wokkel/pubsub.py	Tue Feb 19 09:34:05 2019 +0100
@@ -1320,7 +1320,9 @@
         """
         items = []
         for node in nodes:
-            if isinstance(node, basestring):
+            if not node:
+                continue
+            elif isinstance(node, basestring):
                 items.append(disco.DiscoItem(target, node))
             else:
                 _node, name = node