mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-05-01 22:26:08 -04:00
daemon: Import/export key functions are now coroutines.
This commit is contained in:
parent
90d887e2fa
commit
69d14f3c68
1 changed files with 2 additions and 2 deletions
|
@ -162,7 +162,7 @@ class ProxyDaemon:
|
||||||
logger.info(f"Exporting keys to {path}")
|
logger.info(f"Exporting keys to {path}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
client.export_keys(path, message.passphrase)
|
await client.export_keys(path, message.passphrase)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
info_msg = (f"Error exporting keys for {client.user_id} to"
|
info_msg = (f"Error exporting keys for {client.user_id} to"
|
||||||
f" {path} {e}")
|
f" {path} {e}")
|
||||||
|
@ -190,7 +190,7 @@ class ProxyDaemon:
|
||||||
logger.info(f"Importing keys from {path}")
|
logger.info(f"Importing keys from {path}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
client.import_keys(path, message.passphrase)
|
await client.import_keys(path, message.passphrase)
|
||||||
except (OSError, EncryptionError) as e:
|
except (OSError, EncryptionError) as e:
|
||||||
info_msg = (f"Error importing keys for {client.user_id} "
|
info_msg = (f"Error importing keys for {client.user_id} "
|
||||||
f"from {path} {e}")
|
f"from {path} {e}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue