From de585a23b21ca79b244d01a11f93f6d69c612a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 23 Aug 2019 12:52:46 +0200 Subject: [PATCH] Unnecessary elif after raise MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp_omemo/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: