Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Further down
  • Loading branch information
cclauss authored Jul 19, 2018
commit 3bb5577081e0e1ac13771e86886b89d9559d87d9
2 changes: 1 addition & 1 deletion sc2reader/engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ def run(self, replay):
# the front of the line for immediate processing.
while len(event_queue) > 0:
event = event_queue.popleft()
assert event.player, 'Event with no player: {}'.format(event)

if event.name == 'PluginExit':
# Remove the plugin and reset the handlers.
Expand All @@ -172,6 +171,7 @@ def run(self, replay):
# which get processed after the current event finishes. The new_events
# batch is constructed in reverse order because extendleft reverses
# the order again with a series of appendlefts.
assert event.player, 'Event with no player: {}'.format(event)
new_events = collections.deque()
for event_handler in event_handlers:
try:
Expand Down