Skip to content

Commit 12cdf10

Browse files
igennovaigennova
andauthored
[FIX] missing f-string in dataset features error message (#294)
# Description The error message in `get_dataset_features` was missing an f prefix on the string containing {`dataset_id}`. This caused users to see the literal text {dataset_id} instead of the actual dataset ID when a dataset had no features. Added the f prefix to correctly interpolate the variable. Co-authored-by: igennova <luckynegi025@gmail.com>
1 parent e2fc422 commit 12cdf10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routers/openml/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ async def get_dataset_features(
326326
raise DatasetProcessingError(msg)
327327
msg = (
328328
"No features found. "
329-
"Dataset {dataset_id} did not contain any features, or we could not extract them."
329+
f"Dataset {dataset_id} did not contain any features, or we could not extract them."
330330
)
331331
raise DatasetNoFeaturesError(msg)
332332
return features

0 commit comments

Comments
 (0)