feat: multiple output modes and less logs at boot (fixes)
This commit is contained in:
@@ -32,11 +32,11 @@ class ForgeRawData:
|
||||
def read(self, file: pathlib.Path = FORGE_SAVE_PATH) -> bool:
|
||||
try:
|
||||
content = file.read_text()
|
||||
for line in content.splitlines():
|
||||
key, value = line.split("=", maxsplit=2)
|
||||
self.__data[key] = float(value)
|
||||
except: # noqa: E722
|
||||
return False
|
||||
for line in content.splitlines():
|
||||
key, value = line.split("=", maxsplit=2)
|
||||
self.__data[key] = float(value)
|
||||
if "time" in self.__data:
|
||||
FORGE_SAVE_BACKUP_PATH.write_text(content)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user