You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> import sc2reader
>>> sc2reader.load_replay('replays/beta/asl.SC2Replay')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/kevin/sc2reader/sc2reader/factories/sc2factory.py", line 85, in load_replay
return self.load(Replay, source, options, **new_options)
File "/home/kevin/sc2reader/sc2reader/factories/sc2factory.py", line 137, in load
return self._load(cls, resource, filename=filename, options=options)
File "/home/kevin/sc2reader/sc2reader/factories/sc2factory.py", line 146, in _load
obj = cls(resource, filename=filename, factory=self, **options)
File "/home/kevin/sc2reader/sc2reader/resources.py", line 299, in __init__
self.load_game_events()
File "/home/kevin/sc2reader/sc2reader/resources.py", line 509, in load_game_events
self.events = sorted(self.events+self.game_events, key=lambda e: e.frame)
File "/home/kevin/sc2reader/sc2reader/resources.py", line 509, in <lambda>
self.events = sorted(self.events+self.game_events, key=lambda e: e.frame)
AttributeError: 'NoneType' object has no attribute 'frame'
I think the fix is just to add this just before here
self.game_events = [event for event in self.game_events if event is not None]
I can open a PR for this, but I"m not sure this ist he right thing to do, and I would prefer to merge it onto the lotv branch, but that one hasn't been merged yet
The text was updated successfully, but these errors were encountered:
I got this error with this replay
http://lotv.spawningtool.com/2178/download/
I think the fix is just to add this just before here
I can open a PR for this, but I"m not sure this ist he right thing to do, and I would prefer to merge it onto the
lotv
branch, but that one hasn't been merged yetThe text was updated successfully, but these errors were encountered: