Commit fc8349a5 authored by Maxime Buquet's avatar Maxime Buquet

Merge branch 'master' into 'master'

preventing `variable not defined` exception when no option available

See merge request !5
parents fe897a78 b5ebcaf3
......@@ -431,6 +431,7 @@ class XEP_0384(BasePlugin):
disco = await self.xmpp['xep_0030'].get_info(jid.bare)
publish_options = PUBLISH_OPTIONS_NODE in disco['disco_info'].get_features()
options = None
if publish_options:
options = _make_publish_options_form({
'pubsub#persist_items': True,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment