Skip to content

Commit

Permalink
fix(nhlgt): Crash on non-NHL team in schedule
Browse files Browse the repository at this point in the history
ver(nhlgt): 2.0.13
ver(platform): 2024.10.2
  • Loading branch information
toddrob99 committed Oct 11, 2024
1 parent 5b9a4ab commit 9992a55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bots/nhl_game_threads/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

import praw

__version__ = "2.0.12"
__version__ = "2.0.13"

DATA_LOCK = threading.Lock()

Expand Down Expand Up @@ -220,7 +220,8 @@ def run(self):
self.otherDivisionTeams = [
t
for t in self.allTeams
if t["isNhl"] and t["divisionAbbrev"] == self.myTeam["divisionAbbrev"]
if t.get("isNhl")
and t.get("divisionAbbrev") == self.myTeam["divisionAbbrev"]
]
self.otherDivisionTeamIds = [t["id"] for t in self.otherDivisionTeams]
self.otherDivisionTeamAbbrevs = [
Expand Down
2 changes: 1 addition & 1 deletion redball/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env python

VERSION = "2024.10.1"
VERSION = "2024.10.2"

0 comments on commit 9992a55

Please sign in to comment.