diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 6ebdeae..8257115 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -413,7 +413,7 @@ class XEP_0384(BasePlugin): except (omemo.exceptions.TrustException,) as exn: if exn.problem == 'undecided': raise UndecidedException(exn.bare_jid, exn.device, exn.ik) - elif exn.problem == 'untrusted': + if exn.problem == 'untrusted': raise UntrustedException(exn.bare_jid, exn.device, exn.ik) raise finally: