Here (and maybe elsewhere): https://github.com/huggingface/datasets-server/blob/b40606d399731137846f3d67ec3bda964cd25946/services/worker/src/worker/utils.py#L202 Use the new `revision_exists` method (see https://github.com/huggingface/huggingface_hub/releases/tag/v0.21.0)
Here (and maybe elsewhere):
https://github.com/huggingface/datasets-server/blob/b40606d399731137846f3d67ec3bda964cd25946/services/worker/src/worker/utils.py#L202
Use the new
revision_existsmethod (see https://github.com/huggingface/huggingface_hub/releases/tag/v0.21.0)