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)