mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Update src/backend/lib/config.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
2
src/backend/lib/config.py
vendored
2
src/backend/lib/config.py
vendored
@@ -102,7 +102,7 @@ class Config:
|
|||||||
try:
|
try:
|
||||||
return self.open_file()
|
return self.open_file()
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
with open(self._fp, 'w') as _config_file:
|
with open(self._fp, "w") as _config_file:
|
||||||
json.dump(self.config_structure, _config_file)
|
json.dump(self.config_structure, _config_file)
|
||||||
_config_file.close()
|
_config_file.close()
|
||||||
return self.open_file()
|
return self.open_file()
|
||||||
|
|||||||
Reference in New Issue
Block a user