Skip to content

Commit caeb6ca

Browse files
committed
Fix python3 bug in plugin error handling routine.
1 parent 6fb12e8 commit caeb6ca

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
@@ -178,11 +178,11 @@ def run(self, replay):
178178
else:
179179
new_events.appendleft(new_event)
180180
except Exception as e:
181-
if event_handler.im_self.name in ['ContextLoader']:
181+
if event_handler.__self__.name in ['ContextLoader']:
182182
# Certain built in plugins should probably still cause total failure
183183
raise # Maybe??
184184
else:
185-
new_event = PluginExit(event_handler.im_self, code=1, details=dict(error=e))
185+
new_event = PluginExit(event_handler.__self__, code=1, details=dict(error=e))
186186
new_events.append(new_event)
187187
event_queue.extendleft(new_events)
188188

0 commit comments

Comments
 (0)