xep_0384: rename variable to remove linting warning

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-02-23 18:34:43 +00:00
parent 032469a05f
commit 99fdb6e3fc
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -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)