Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Commit b76bdfa

Browse files
author
Jason Costello
committed
Making response parsing more generic (given not all resources use the .json()
method due to Ensemble hypervector compression)
1 parent 9063ea8 commit b76bdfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypervector/resources/abstract/api_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get(cls, uuid):
2121
endpoint = f'{hypervector.API_BASE}/{cls.resource_name}/{uuid}'
2222
response = requests.get(endpoint, headers=cls.get_headers())
2323
if response.status_code == 200:
24-
return cls.from_get(response.json())
24+
return cls.from_get(response)
2525
else:
2626
raise HypervectorError(response)
2727

0 commit comments

Comments
 (0)