From 96e4ecf6836edbb3a8dcf3ef7db75d603814f7bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 25 Aug 2019 00:35:30 +0200 Subject: [PATCH] Properly name values passed to EncryptionPrepareException 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, 3 insertions(+), 1 deletion(-) diff --git a/slixmpp_omemo/__init__.py b/slixmpp_omemo/__init__.py index 2e74900..b22ae49 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -144,7 +144,9 @@ class MissingOwnKey(XEP0384): pass class NoAvailableSession(XEP0384): pass -class EncryptionPrepareException(XEP0384): pass +class EncryptionPrepareException(XEP0384): + def __init__(self, errors): + self.errors = errors class UntrustedException(XEP0384):