import yaml


def __load_yaml(yaml_fn):
    """
    Loads the contents of a YAML file.

    Arguments:
      * yaml_fn (str) -- YAML filename

    Returns:
        Loaded YAML file, None if not found
    """
    try:
        with open(yaml_fn, 'r') as f:
            return yaml.safe_load(f)
    except (OSError, IOError):
        return None