# HG changeset patch # User Thibaut Girka # Date 1315672425 -7200 # Node ID 284ac8f97a96b53d99b1254079528ed0b6542393 # Parent 8ba01861782999c456a64da3e9f3b85bebe33f58 Fix potential crash diff --git a/pytouhou/vm/anmrunner.py b/pytouhou/vm/anmrunner.py --- a/pytouhou/vm/anmrunner.py +++ b/pytouhou/vm/anmrunner.py @@ -58,7 +58,7 @@ class ANMRunner(object): try: callback = self._handlers[opcode] except KeyError: - logger.warn('unhandled opcode %d (args: %r)', instr_type, args) + logger.warn('unhandled opcode %d (args: %r)', opcode, args) else: callback(self, *args) sprite._changed = True