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: