f-strings
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
13052817bf
commit
3a85411df8
1 changed files with 2 additions and 2 deletions
|
@ -397,7 +397,7 @@ class XEP_0384(BasePlugin):
|
|||
# TODO: Slixmpp should handle pubsub#errors so we don't have to
|
||||
# fish the element ourselves
|
||||
precondition = exn.iq['error'].xml.find(
|
||||
'{%s}%s' % (PUBSUB_ERRORS, 'precondition-not-met'),
|
||||
f'{{{PUBSUB_ERRORS}}}precondition-not-met'
|
||||
)
|
||||
if precondition is not None:
|
||||
log.debug('The node we tried to publish was already '
|
||||
|
@ -417,7 +417,7 @@ class XEP_0384(BasePlugin):
|
|||
|
||||
async def _fetch_bundle(self, jid: str, device_id: int) -> Optional[ExtendedPublicBundle]:
|
||||
log.debug('Fetching bundle for JID: %r, device: %r', jid, device_id)
|
||||
node = '%s:%d' % (OMEMO_BUNDLES_NS, device_id)
|
||||
node = f'{OMEMO_BUNDLES_NS}:{device_id}'
|
||||
try:
|
||||
iq = await self.xmpp['xep_0060'].get_items(jid, node)
|
||||
except (IqError, IqTimeout):
|
||||
|
|
Loading…
Reference in a new issue