diff --git a/src/datasets/fingerprint.py b/src/datasets/fingerprint.py index 92488293504..7d73758a049 100644 --- a/src/datasets/fingerprint.py +++ b/src/datasets/fingerprint.py @@ -466,7 +466,7 @@ def fingerprint_transform( def _fingerprint(func): if not inplace and not all(name in func.__code__.co_varnames for name in fingerprint_names): - raise ValueError("function {func} is missing parameters {fingerprint_names} in signature") + raise ValueError(f"function {func} is missing parameters {fingerprint_names} in signature") if randomized_function: # randomized function have seed and generator parameters if "seed" not in func.__code__.co_varnames: