preventing variable not defined
exception when no option available
This commit is contained in:
parent
fe897a786e
commit
b5ebcaf326
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue