summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/omemo_plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/omemo_plugin.py b/plugins/omemo_plugin.py
index 8759957b..4d3eabec 100644
--- a/plugins/omemo_plugin.py
+++ b/plugins/omemo_plugin.py
@@ -122,5 +122,7 @@ class Plugin(BasePlugin):
self.info('Foo2')
if self.xmpp['xep_0384'].is_encrypted(message):
- _always_none, body = self.xmpp['xep_0384'].decrypt_message(message)
+ body = self.xmpp['xep_0384'].decrypt_message(message)
+ if body is None: # Message wasn't decrypted
+ return None
message['body'] = body.decode("utf8")