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 e718d43 commit e322a25Copy full SHA for e322a25
labelbox/schema/task.py
@@ -68,11 +68,12 @@ def wait_till_done(self, timeout_seconds=300) -> None:
68
time.sleep(sleep_time_seconds)
69
self.refresh()
70
71
- def get_result(self) -> str:
+ def errors(self) -> dict:
72
""" Downloads the result file from Task
73
"""
74
- if self.result:
+ if self.status == "FAILED" and self.result:
75
response = requests.get(self.result)
76
response.raise_for_status()
77
- return response.text
78
- return ""
+ data = response.json()
+ return data['error']
79
+ return None
0 commit comments