scaleapi 2.15.7__tar.gz → 2.15.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scaleapi
3
- Version: 2.15.7
3
+ Version: 2.15.8
4
4
  Summary: The official Python client library for Scale AI, the Data Platform for AI
5
5
  Home-page: https://github.com/scaleapi/scaleapi-python-client
6
6
  Author: Scale AI
@@ -1,2 +1,2 @@
1
- __version__ = "2.15.7"
1
+ __version__ = "2.15.8"
2
2
  __package_name__ = "scaleapi"
@@ -144,10 +144,10 @@ class Api:
144
144
  # Some endpoints only return 'OK' message without JSON
145
145
  return json
146
146
  elif res.status_code == 409 and "task" in endpoint and body.get("unique_id"):
147
- retry_history = None
148
- if "retries" in res.raw and "history" in res.raw.retries:
147
+ try:
149
148
  retry_history = res.raw.retries.history
150
-
149
+ except AttributeError:
150
+ retry_history = []
151
151
  # Example RequestHistory tuple
152
152
  # RequestHistory(method='POST',
153
153
  # url='/v1/task/imageannotation',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scaleapi
3
- Version: 2.15.7
3
+ Version: 2.15.8
4
4
  Summary: The official Python client library for Scale AI, the Data Platform for AI
5
5
  Home-page: https://github.com/scaleapi/scaleapi-python-client
6
6
  Author: Scale AI
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes