Fix config writing failing if parent dir not exist
Problem introduced in ba3e93e658eb8c536a0dd803c8cb5fabbb68fb8f
This commit is contained in:
parent
59ef2004e1
commit
e36fa4eeda
|
@ -171,6 +171,8 @@ class UserFile:
|
||||||
if self.write_path.parts[0] == "qrc:":
|
if self.write_path.parts[0] == "qrc:":
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self.write_path.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user