Skip to content

Commit

Permalink
Fix NoneType error.
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jvessella committed Mar 6, 2024
1 parent f61360d commit 8011315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gamebrain/gamedata/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8011315

Please sign in to comment.