changeset 2940:ef554aca3eb1

plugin list interest: initialise extra with an empty dict if not set in registerPubsub
author Goffi <goffi@goffi.org>
date Sat, 04 May 2019 00:05:11 +0200
parents 18a98a541f7a
children 83cbd4545274
files sat/plugins/plugin_exp_list_of_interest.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_exp_list_of_interest.py	Fri May 03 20:49:27 2019 +0200
+++ b/sat/plugins/plugin_exp_list_of_interest.py	Sat May 04 00:05:11 2019 +0200
@@ -98,6 +98,8 @@
         @param extra(dict, None): extra data, key can be:
             - thumb_url: http(s) URL of a thumbnail
         """
+        if extra is None:
+            extra = {}
         yield self.createNode(client)
         interest_elt = domish.Element((NS_LIST_INTEREST, u"interest"))
         interest_elt[u"namespace"] = namespace