From 2a9bade3339023a84bfc8f8f94fd695314e3969d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 16 Dec 2021 01:06:15 +0100 Subject: [PATCH] Rename short variable 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 9d74a92..e423ad3 100644 --- a/slixmpp_omemo/__init__.py +++ b/slixmpp_omemo/__init__.py @@ -385,10 +385,10 @@ class XEP_0384(BasePlugin): iq = await self._generate_bundle_iq() try: await iq.send() - except IqError as e: + except IqError as exn: # TODO: Slixmpp should handle pubsub#errors so we don't have to # fish the element ourselves - precondition = e.iq['error'].xml.find( + precondition = exn.iq['error'].xml.find( '{%s}%s' % (PUBSUB_ERRORS, 'precondition-not-met'), ) if precondition is not None: