From 56c14723df8020292527a44bf4f30effb53fe1f7 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sat, 4 May 2019 00:05:11 +0200 Subject: [PATCH] plugin list interest: initialise extra with an empty dict if not set in registerPubsub --- sat/plugins/plugin_exp_list_of_interest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sat/plugins/plugin_exp_list_of_interest.py b/sat/plugins/plugin_exp_list_of_interest.py index e73ce9de..8a25fe22 100644 --- a/sat/plugins/plugin_exp_list_of_interest.py +++ b/sat/plugins/plugin_exp_list_of_interest.py @@ -98,6 +98,8 @@ class ListInterest(object): @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