Skip to content

Commit 179ec61

Browse files
committed
Cleanup
1 parent bbf1fdd commit 179ec61

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

labelbox/client.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@ def __init__(self,
9898
'X-User-Agent': f'python-sdk {SDK_VERSION}'
9999
}
100100
self._data_row_metadata_ontology = None
101-
self.rest_endpoint = rest_endpoint
102-
self.rest_endpoint_headers = {
103-
"authorization": "Bearer %s" % self.api_key,
104-
'X-User-Agent': 'python-sdk 0.0.0',
105-
'Content-Type': 'application/json',
106-
}
107101

108102
@retry.Retry(predicate=retry.if_exception_type(
109103
labelbox.exceptions.InternalServerError,
@@ -1593,7 +1587,7 @@ def unarchive_feature_schema_node(self, ontology_id: str,
15931587
ontology_endpoint = self.rest_endpoint + "/ontologies/" + ontology_id + '/feature-schemas/' + root_feature_schema_id + '/unarchive'
15941588
response = requests.patch(
15951589
ontology_endpoint,
1596-
headers=self.rest_endpoint_headers,
1590+
headers=self.headers,
15971591
)
15981592
if response.status_code == 200:
15991593
return response.json()['unarchived']

0 commit comments

Comments
 (0)