From 99fdb6e3fcb6dae3190a8ad1dc7806692a460b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 23 Feb 2019 18:34:43 +0000 Subject: [PATCH] xep_0384: rename variable to remove linting warning 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 9a373ab..be9a181 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -410,8 +410,8 @@ class XEP_0384(BasePlugin): expect_problems=expect_problems, ) return _generate_encrypted_payload(encrypted) - except omemo.exceptions.EncryptionProblemsException as e: - errors = e.problems + except omemo.exceptions.EncryptionProblemsException as exn: + errors = exn.problems if errors == old_errors: raise EncryptionPrepareException(errors)