Fix some strings

This commit is contained in:
Tulir Asokan 2022-03-27 19:44:25 +03:00
parent 1aaa8f2fb6
commit 59f51f8705
3 changed files with 4 additions and 4 deletions

View file

@ -74,7 +74,7 @@ async def list_servers(server: str, sess: aiohttp.ClientSession) -> None:
@click.option(
"-c",
"--update-client",
help="Instead of returning the access token, " "create or update a client in maubot using it",
help="Instead of returning the access token, create or update a client in maubot using it",
is_flag=True,
default=False,
)

View file

@ -222,7 +222,7 @@ class Client(DBClient):
crypto_device_id = await self.crypto_store.get_device_id()
if crypto_device_id and crypto_device_id != self.device_id:
self.log.warning(
"Mismatching device ID in crypto store and main database, " "resetting encryption"
"Mismatching device ID in crypto store and main database, resetting encryption"
)
await self.crypto_store.delete()
crypto_device_id = None
@ -263,7 +263,7 @@ class Client(DBClient):
return
elif whoami.device_id and self.device_id and whoami.device_id != self.device_id:
self.log.error(
f"Device ID mismatch: expected {self.device_id}, " f"but got {whoami.device_id}"
f"Device ID mismatch: expected {self.device_id}, but got {whoami.device_id}"
)
self.enabled = False
await self.update()

View file

@ -78,7 +78,7 @@ parser.add_argument(
type=str,
default="pkg://maubot.standalone/example-config.yaml",
metavar="<path>",
help="the path to the example config " "(for automatic config updates)",
help="the path to the example config (for automatic config updates)",
)
parser.add_argument(
"-m",