We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3678aab commit 42858b8Copy full SHA for 42858b8
labelbox/schema/project.py
@@ -182,8 +182,9 @@ def export_queued_data_rows(self, timeout_seconds=120):
182
res = res["exportQueuedDataRows"]
183
if res["status"] == "COMPLETE":
184
download_url = res["downloadUrl"]
185
- data = requests.get(download_url)
186
- return ndjson.loads(data.text)
+ response = requests.get(download_url)
+ response.raise_for_status()
187
+ return ndjson.loads(response.text)
188
elif res["status"] == "FAILED":
189
raise LabelboxError("Data row export failed.")
190
0 commit comments