Fix config writing failing if parent dir not exist

Problem introduced in ba3e93e658eb8c536a0dd803c8cb5fabbb68fb8f
This commit is contained in:
miruka 2021-04-09 05:55:30 -04:00
parent 59ef2004e1
commit e36fa4eeda

View File

@ -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)