summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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)