Merge pull request 'clan-vm-manager: Fixed assets folder not included' (#606) from Qubasa-main into main
This commit is contained in:
@@ -35,8 +35,9 @@ def list_history() -> list[HistoryEntry]:
|
||||
content: str = f.read()
|
||||
parsed: list[dict] = json.loads(content)
|
||||
logs = [HistoryEntry(**p) for p in parsed]
|
||||
except json.JSONDecodeError:
|
||||
print("Failed to load history")
|
||||
except json.JSONDecodeError as ex:
|
||||
print("Failed to load history. Invalid JSON.")
|
||||
print(f"{user_history_file()}: {ex}")
|
||||
|
||||
return logs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user