We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d97aef + 77fa358 commit 975fc8fCopy full SHA for 975fc8f
sc2reader/resources.py
@@ -371,9 +371,9 @@ def load_attribute_events(self):
371
self.attributes[attr.player][attr.name] = attr.value
372
373
# Populate replay with attributes
374
- self.speed = self.attributes[16]["Game Speed"]
375
- self.category = self.attributes[16]["Game Mode"]
376
- self.type = self.game_type = self.attributes[16]["Teams"]
+ self.speed = self.attributes[16].get("Game Speed", 1.0)
+ self.category = self.attributes[16].get("Game Mode", "")
+ self.type = self.game_type = self.attributes[16].get("Teams", "")
377
self.is_ladder = self.category == "Ladder"
378
self.is_private = self.category == "Private"
379
0 commit comments