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}")
|
||||
|
||||
try:
|
||||
client.export_keys(path, message.passphrase)
|
||||
await client.export_keys(path, message.passphrase)
|
||||
except OSError as e:
|
||||
info_msg = (f"Error exporting keys for {client.user_id} to"
|
||||
f" {path} {e}")
|
||||
@ -190,7 +190,7 @@ class ProxyDaemon:
|
||||
logger.info(f"Importing keys from {path}")
|
||||
|
||||
try:
|
||||
client.import_keys(path, message.passphrase)
|
||||
await client.import_keys(path, message.passphrase)
|
||||
except (OSError, EncryptionError) as e:
|
||||
info_msg = (f"Error importing keys for {client.user_id} "
|
||||
f"from {path} {e}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user