From 7ccd6c89fbb6c5eabffd983c64ac9a609f9dfc0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 30 Jan 2019 23:17:48 +0100 Subject: [PATCH] xep_0384: pass the UntrustedException to the user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- plugin.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin.py b/plugin.py index 25559ca..48da101 100644 --- a/plugin.py +++ b/plugin.py @@ -340,10 +340,7 @@ class XEP_0384(BasePlugin): # in any case, but we want to tell the user, always. raise NoAvailableSession(jid, sid) except (omemo.exceptions.UntrustedException,) as e: - # TODO: Pass the exception down to the lib user - # raise UntrustedException(e) - self.trust(JID(e.bare_jid), e.device, e.ik) - return self.decrypt_message(msg) + raise UntrustedException(e) finally: asyncio.ensure_future(self._publish_bundle())