Change variable name to make mypy happier

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-03-11 01:33:10 +01:00
parent 1ac08130ed
commit b5faae0b23
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -592,8 +592,8 @@ class XEP_0384(BasePlugin):
expect_problems=expect_problems, expect_problems=expect_problems,
) )
return _generate_encrypted_payload(encrypted) return _generate_encrypted_payload(encrypted)
except omemo.exceptions.EncryptionProblemsException as exn: except omemo.exceptions.EncryptionProblemsException as exception:
errors = exn.problems errors = exception.problems
if errors == old_errors: if errors == old_errors:
raise EncryptionPrepareException(errors) raise EncryptionPrepareException(errors)