From 8ca55b4442575a172cf258da34ac080aea872f4c Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 14 Dec 2021 00:01:28 +0100 Subject: [PATCH] fix: do not traceback on encrypted payloads without a tab open --- 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 3ac88eb9..183350ea 100644 --- a/poezio/plugin_e2ee.py +++ b/poezio/plugin_e2ee.py @@ -352,7 +352,7 @@ class E2EEPlugin(BasePlugin): exc, ) # XXX: check before commit. Do we not nack in MUCs? - if not isinstance(tab, MucTab): + if tab and not isinstance(tab, MucTab): tab.nack_message(msg, stanza['id'], stanza['from']) # TODO: display exceptions to the user properly log.error('Exception in encrypt:', exc_info=True)