Skip to content

Commit 85f5b84

Browse files
committed
Updated status code check
1 parent f5a2c1b commit 85f5b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@ def is_feature_schema_archived(self, ontology_id: str,
15931593
headers=self.headers,
15941594
)
15951595

1596-
if response.status_code == 200:
1596+
if response.status_code == requests.codes.ok:
15971597
feature_schema_nodes = response.json()['featureSchemaNodes']
15981598
tools = feature_schema_nodes['tools']
15991599
classifications = feature_schema_nodes['classifications']

0 commit comments

Comments
 (0)