def delete_if_exists(path, remove=os.unlink):
    """Delete a file, but ignore file not found error.

    :param path: File to delete
    :param remove: Optional function to remove passed path
    """

    try:
        remove(path)
    except __HOLE__ as e:
        if e.errno != errno.ENOENT:
            raise
dataset/ETHPy150Open openstack/solum/solum/openstack/common/fileutils.py/delete_if_exists