Skip to content

Commit 3bb5577

Browse files
author
cclauss
authored
Further down
1 parent f293b9c commit 3bb5577

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sc2reader/engine/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ def run(self, replay):
151151
# the front of the line for immediate processing.
152152
while len(event_queue) > 0:
153153
event = event_queue.popleft()
154-
assert event.player, 'Event with no player: {}'.format(event)
155154

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

0 commit comments

Comments
 (0)