Skip to content

Commit 682a150

Browse files
committed
Fix wait_until_valid to properly wait for a publishable version
1 parent 4cde72f commit 682a150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dandi/dandiapi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ def wait_until_valid(self, max_time: float = 120) -> None:
10231023
start = time()
10241024
while time() - start < max_time:
10251025
v = self.get_version(self.version_id)
1026-
if v.status is VersionStatus.VALID:
1026+
if v.status is VersionStatus.VALID and not v.asset_validation_errors:
10271027
return
10281028
sleep(0.5)
10291029
# TODO: Improve the presentation of the error messages

0 commit comments

Comments
 (0)