Skip to content

Commit e1f3d4e

Browse files
committed
Fix python3 bug in plugin error handling routine.
1 parent 49158d1 commit e1f3d4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sc2reader/engine/engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ def run(self, replay):
181181
else:
182182
new_events.appendleft(new_event)
183183
except Exception as e:
184-
if event_handler.im_self.name in ['ContextLoader']:
184+
if event_handler.__self__.name in ['ContextLoader']:
185185
# Certain built in plugins should probably still cause total failure
186186
raise # Maybe??
187187
else:
188-
new_event = PluginExit(event_handler.im_self, code=1, details=dict(error=e))
188+
new_event = PluginExit(event_handler.__self__, code=1, details=dict(error=e))
189189
new_events.append(new_event)
190190
event_queue.extendleft(new_events)
191191

0 commit comments

Comments
 (0)