Skip to content

Commit

Permalink
Use f-string in Croissant utils ValueError.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 715533432
  • Loading branch information
The TensorFlow Datasets Authors committed Jan 14, 2025
1 parent dd96a07 commit 1322866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow_datasets/core/utils/croissant_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_split_recordset(
if isinstance(node, mlc.RecordSet)
]
if not record_sets:
raise ValueError("field {field.id} has no RecordSet")
raise ValueError(f"Field {field.id} has no RecordSet.")
referenced_record_set = record_sets[0]
if mlc.DataType.SPLIT in referenced_record_set.data_types:
return SplitReference(referenced_record_set, field)
Expand Down

0 comments on commit 1322866

Please sign in to comment.