Rename short variable

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2021-12-16 01:06:15 +01:00
parent 28fe0d04c7
commit 2a9bade333

View file

@ -385,10 +385,10 @@ class XEP_0384(BasePlugin):
iq = await self._generate_bundle_iq() iq = await self._generate_bundle_iq()
try: try:
await iq.send() await iq.send()
except IqError as e: except IqError as exn:
# TODO: Slixmpp should handle pubsub#errors so we don't have to # TODO: Slixmpp should handle pubsub#errors so we don't have to
# fish the element ourselves # fish the element ourselves
precondition = e.iq['error'].xml.find( precondition = exn.iq['error'].xml.find(
'{%s}%s' % (PUBSUB_ERRORS, 'precondition-not-met'), '{%s}%s' % (PUBSUB_ERRORS, 'precondition-not-met'),
) )
if precondition is not None: if precondition is not None: