feat: multiple output modes and less logs at boot (fixes)

This commit is contained in:
2026-11-04 01:42:24 +01:00
parent d0640583a1
commit a76abe63db
9 changed files with 22 additions and 11 deletions
+3 -3
View File
@@ -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