diff --git a/sc2reader/resources.py b/sc2reader/resources.py index a74445fc..4898be33 100644 --- a/sc2reader/resources.py +++ b/sc2reader/resources.py @@ -371,9 +371,9 @@ def load_attribute_events(self): self.attributes[attr.player][attr.name] = attr.value # Populate replay with attributes - self.speed = self.attributes[16]["Game Speed"] - self.category = self.attributes[16]["Game Mode"] - 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", "") self.is_ladder = self.category == "Ladder" self.is_private = self.category == "Private"