Fix some strings
This commit is contained in:
parent
1aaa8f2fb6
commit
59f51f8705
3 changed files with 4 additions and 4 deletions
|
@ -74,7 +74,7 @@ async def list_servers(server: str, sess: aiohttp.ClientSession) -> None:
|
||||||
@click.option(
|
@click.option(
|
||||||
"-c",
|
"-c",
|
||||||
"--update-client",
|
"--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,
|
is_flag=True,
|
||||||
default=False,
|
default=False,
|
||||||
)
|
)
|
||||||
|
|
|
@ -222,7 +222,7 @@ class Client(DBClient):
|
||||||
crypto_device_id = await self.crypto_store.get_device_id()
|
crypto_device_id = await self.crypto_store.get_device_id()
|
||||||
if crypto_device_id and crypto_device_id != self.device_id:
|
if crypto_device_id and crypto_device_id != self.device_id:
|
||||||
self.log.warning(
|
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()
|
await self.crypto_store.delete()
|
||||||
crypto_device_id = None
|
crypto_device_id = None
|
||||||
|
@ -263,7 +263,7 @@ class Client(DBClient):
|
||||||
return
|
return
|
||||||
elif whoami.device_id and self.device_id and whoami.device_id != self.device_id:
|
elif whoami.device_id and self.device_id and whoami.device_id != self.device_id:
|
||||||
self.log.error(
|
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
|
self.enabled = False
|
||||||
await self.update()
|
await self.update()
|
||||||
|
|
|
@ -78,7 +78,7 @@ parser.add_argument(
|
||||||
type=str,
|
type=str,
|
||||||
default="pkg://maubot.standalone/example-config.yaml",
|
default="pkg://maubot.standalone/example-config.yaml",
|
||||||
metavar="<path>",
|
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(
|
parser.add_argument(
|
||||||
"-m",
|
"-m",
|
||||||
|
|
Loading…
Reference in a new issue