def METHOD_NAME(self, *args, **kargs):
    self.error = 1
    exc_type, exc_value, exc_tb = sys.exc_info()
    if isinstance(exc_value, StopAutorun):
        raise exc_value
    return code.InteractiveInterpreter.METHOD_NAME(self, *args, **kargs)