Skip to content

Commit aadb162

Browse files
author
Matt Sokoloff
committed
raise ValueError when user attempts to get status for failed import
1 parent 06ac809 commit aadb162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/schema/annotation_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _fetch_remote_ndjson(self, url: str) -> List[Dict[str, Any]]:
124124
ndjson as a list of dicts.
125125
"""
126126
if self.state == AnnotationImportState.FAILED:
127-
raise Exception("")
127+
raise ValueError("Import failed.")
128128

129129
response = requests.get(url)
130130
response.raise_for_status()

0 commit comments

Comments
 (0)