From b5faae0b237a14eb3c3d93079e53220929159336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 11 Mar 2020 01:33:10 +0100 Subject: [PATCH] Change variable name to make mypy happier 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 6521c3e..0c62e1d 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -592,8 +592,8 @@ class XEP_0384(BasePlugin): expect_problems=expect_problems, ) return _generate_encrypted_payload(encrypted) - except omemo.exceptions.EncryptionProblemsException as exn: - errors = exn.problems + except omemo.exceptions.EncryptionProblemsException as exception: + errors = exception.problems if errors == old_errors: raise EncryptionPrepareException(errors)