Mercurial > libervia-backend
diff sat/plugins/plugin_exp_list_of_interest.py @ 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 | 782612c7854b |
children | ab2696e34d29 |
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