Merge pull request 'clan-vm-manager: Fixed assets folder not included' (#606) from Qubasa-main into main

This commit is contained in:
clan-bot
2023-12-04 18:26:51 +00:00
9 changed files with 97 additions and 50 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