mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-02-07 02:25:23 -05:00
daemon: Import/export key functions are now coroutines.
This commit is contained in:
parent
90d887e2fa
commit
69d14f3c68
@ -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…
x
Reference in New Issue
Block a user