Rename short variable
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
28fe0d04c7
commit
2a9bade333
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue