From 80113158740881db2d27433aad4dcbbd6bad8b61 Mon Sep 17 00:00:00 2001 From: Joe Vessella Date: Wed, 6 Mar 2024 10:59:38 -0500 Subject: [PATCH] Fix NoneType error. --- gamebrain/gamedata/cache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gamebrain/gamedata/cache.py b/gamebrain/gamedata/cache.py index a87c977..c58c6fa 100644 --- a/gamebrain/gamedata/cache.py +++ b/gamebrain/gamedata/cache.py @@ -1828,7 +1828,8 @@ async def get_team_data(cls, team_id: TeamID | None) -> GameDataResponse | None: cls._spam_reduction_tracker += 1 # This value is not used in PC5. - if not team_data.ship.gamespaceData.isPC4Workspace: + if team_data.ship.gamespaceData and \ + not team_data.ship.gamespaceData.isPC4Workspace: team_data.session.teamCodexCount = 0 return full_team_data