cq: Format strings
This commit is contained in:
@@ -50,7 +50,7 @@ class KeyStore:
|
||||
|
||||
ver = self._store.get("_version", 2)
|
||||
if ver > CURRENT_STORE_VERSION:
|
||||
raise Exception("Unknown store version! " "Please upgrade pgp plugin.")
|
||||
raise Exception("Unknown store version! Please upgrade pgp plugin.")
|
||||
elif ver == 2:
|
||||
self._migrate_v2_store()
|
||||
self._save_store()
|
||||
@@ -140,12 +140,12 @@ class KeyStore:
|
||||
return candidates[0]
|
||||
elif len(candidates) > 1:
|
||||
self._log.critical(
|
||||
"Key collision during migration. " "Key ID is %s. Removing binding...",
|
||||
"Key collision during migration. Key ID is %s. Removing binding...",
|
||||
repr(short_id),
|
||||
)
|
||||
else:
|
||||
self._log.warning(
|
||||
"Key %s was not found during migration. " "Removing binding...",
|
||||
"Key %s was not found during migration. Removing binding...",
|
||||
repr(short_id),
|
||||
)
|
||||
raise KeyResolveError
|
||||
|
||||
@@ -134,13 +134,13 @@ class PGPLegacy(BaseModule):
|
||||
fingerprint = self._pgp.verify(properties.status, properties.signed)
|
||||
if fingerprint is None:
|
||||
self._log.info(
|
||||
"Presence from %s was signed but no corresponding " "key was found", jid
|
||||
"Presence from %s was signed but no corresponding key was found", jid
|
||||
)
|
||||
return
|
||||
|
||||
self._presence_fingerprint_store[jid] = fingerprint
|
||||
self._log.info(
|
||||
"Presence from %s was verified successfully, " "fingerprint: %s",
|
||||
"Presence from %s was verified successfully, fingerprint: %s",
|
||||
jid,
|
||||
fingerprint,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user