From 72ec3cd73bf884ce54603f9bf2a030285984ad4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 31 Dec 2021 01:51:29 +0100 Subject: plugin_e2ee: don't fail on tab.jid if tab is None MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I doubt this is the proper fix, there are still paths that use tab below that. Signed-off-by: Maxime “pep” Buquet --- poezio/plugin_e2ee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/plugin_e2ee.py b/poezio/plugin_e2ee.py index 1b393841..0de203cc 100644 --- a/poezio/plugin_e2ee.py +++ b/poezio/plugin_e2ee.py @@ -478,7 +478,7 @@ class E2EEPlugin(BasePlugin): if user.jid.bare: jids.append(user.jid) - if not self._encryption_enabled(tab.jid): + if tab and not self._encryption_enabled(tab.jid): raise NothingToEncrypt() log.debug('Sending %s message', self.encryption_name) -- cgit v1.2.3