Skip to content

Commit b941cef

Browse files
committed
Updated error message
1 parent 122e031 commit b941cef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

labelbox/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,5 +1628,6 @@ def remove_feature_schema_from_ontology(self, ontology_id: str,
16281628
print(
16291629
'Feature schema was successfully removed from the ontology')
16301630
else:
1631-
print('Failed to remove feature schema from ontology: ' +
1632-
response.text)
1631+
raise labelbox.exceptions.LabelboxError(
1632+
"Failed to remove feature schema from ontology, message: " +
1633+
str(response.json()['message']))

0 commit comments

Comments
 (0)