From b5ebcaf326599a1b867e09cddb548b392db84967 Mon Sep 17 00:00:00 2001 From: senior Date: Mon, 27 Jan 2020 23:32:08 +0300 Subject: [PATCH] preventing `variable not defined` exception when no option available --- slixmpp_omemo/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 448ed95..9842ce4 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -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,