Fix exporting key to a path that doesn't exist yet
This commit is contained in:
parent
df753b5262
commit
aefb314999
|
@ -345,9 +345,9 @@ class MatrixClient(nio.AsyncClient):
|
||||||
path = Path(outfile)
|
path = Path(outfile)
|
||||||
path.parent.mkdir(parents=True, exist_ok=True)
|
path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
# Remove any existing file
|
# The QML dialog asks the user if he wants to overwrite before this
|
||||||
# (the QML dialog asks the user if he wants to overwrite before this)
|
if path.exists():
|
||||||
path.unlink()
|
path.unlink()
|
||||||
|
|
||||||
await super().export_keys(outfile, passphrase)
|
await super().export_keys(outfile, passphrase)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user