Skip to content

Commit 1a4965d

Browse files
authored
Merge pull request #653 from corynezinstitchfix/patch-1
Check if export download url is None before returning
2 parents 05530d2 + c601824 commit 1a4965d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/schema/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def _validate_datetime(string_date: str) -> bool:
333333
while True:
334334
res = self.client.execute(query_str, {id_param: self.uid})
335335
res = res["exportLabels"]
336-
if not res["shouldPoll"]:
336+
if not res["shouldPoll"] and res["downloadUrl"] is not None:
337337
url = res['downloadUrl']
338338
if not download:
339339
return url

0 commit comments

Comments
 (0)