def METHOD_NAME():
    r"""When PsychoPy encounters an error, it does a sys.exit() which is not
    what we want, because it closes OpenSesame altogether. Instead, we nicely
    inform the user that PsychoPy has signalled an error.
    """
    raise OSException(
        u'PsychoPy encountered an error and aborted the program. See the debug window for PsychoPy error messages.')