summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-12-14 00:01:28 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2022-03-01 20:44:07 +0100
commit8ca55b4442575a172cf258da34ac080aea872f4c (patch)
treea4aece4767183262a3b68851824c4a775bc25eca
parentaaa6911a393529d67c3b80d3c68614c950204a39 (diff)
downloadpoezio-8ca55b4442575a172cf258da34ac080aea872f4c.tar.gz
poezio-8ca55b4442575a172cf258da34ac080aea872f4c.tar.bz2
poezio-8ca55b4442575a172cf258da34ac080aea872f4c.tar.xz
poezio-8ca55b4442575a172cf258da34ac080aea872f4c.zip
fix: do not traceback on encrypted payloads without a tab open
-rw-r--r--poezio/plugin_e2ee.py2
1 files changed, 1 insertions, 1 deletions
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)