clan-vm-manager: Fixed assets folder not included

This commit is contained in:
Qubasa
2023-12-04 16:56:42 +01:00
parent 1250079136
commit 22c26c3e1f
6 changed files with 36 additions and 21 deletions

View File

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