Skip to content

Commit 703cf81

Browse files
author
Matt Sokoloff
committed
update error message
1 parent 32bdae6 commit 703cf81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labelbox/data/ontology.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def flatten_classification(classifications):
1616
for classification in classifications:
1717
if classification.feature_schema_id is None:
1818
raise ValueError(
19-
f"feature_schema_id is None for classification `{classification.name}`."
19+
f"feature_schema_id cannot be None for classification `{classification.name}`."
2020
)
2121
if isinstance(classification, ontology.Classification):
2222
classification_lookup[
@@ -34,7 +34,7 @@ def flatten_classification(classifications):
3434
for tool in ontology_builder.tools:
3535
if tool.feature_schema_id is None:
3636
raise ValueError(
37-
f"feature_schema_id is None for tool `{tool.name}`.")
37+
f"feature_schema_id cannot be None for tool `{tool.name}`.")
3838
tool_lookup[tool.name] = tool.feature_schema_id
3939
flatten_classification(tool.classifications)
4040
flatten_classification(ontology_builder.classifications)

0 commit comments

Comments
 (0)