diff options
author | mathieui <mathieui@mathieui.net> | 2021-12-14 00:01:28 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2022-03-01 20:44:07 +0100 |
commit | 8ca55b4442575a172cf258da34ac080aea872f4c (patch) | |
tree | a4aece4767183262a3b68851824c4a775bc25eca | |
parent | aaa6911a393529d67c3b80d3c68614c950204a39 (diff) | |
download | poezio-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.py | 2 |
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) |