Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaenzig committed Mar 20, 2024
1 parent 0022cd8 commit 9dcd24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eva/vision/data/datasets/_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def check_dataset_integrity(

def check_dataset_exists(dataset_dir: str, download_available: bool) -> None:
if not os.path.isdir(dataset_dir):
error_message = "Dataset not found at '{dataset_dir}'."
error_message = f"Dataset not found at '{dataset_dir}'."
if download_available:
error_message += " You can set `download=True` to download the dataset automatically."
raise FileNotFoundError(error_message)

0 comments on commit 9dcd24a

Please sign in to comment.