# HG changeset patch # User Goffi # Date 1556921111 -7200 # Node ID ef554aca3eb140f8a7e5a42ac5ed9e27fa6ca59d # Parent 18a98a541f7a36566ac2e588814f5ee9b2c47f9f plugin list interest: initialise extra with an empty dict if not set in registerPubsub diff -r 18a98a541f7a -r ef554aca3eb1 sat/plugins/plugin_exp_list_of_interest.py --- 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