def METHOD_NAME(filename):
    if filename in _manager_cache:
        return _manager_cache[filename]
    try:
        # use cache so Workbench doesn't create duplicate manager
        # when FirstRunWindow already created one
        mgr = ConfigurationManager(filename)
    except configparser.Error as e:
        new_path = filename + ".corrupt"
        os.replace(filename, new_path)
        mgr = ConfigurationManager(filename, error_reading_existing_file=e)
    _manager_cache[filename] = mgr
    return mgr