Skip to content

Commit

Permalink
remove failed file
Browse files Browse the repository at this point in the history
  • Loading branch information
legnaleurc committed Dec 16, 2023
1 parent 4e93c48 commit 556052b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion driveutil/fix-hah/app/_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ async def upload(drive: Drive, src: Path, dst: Node, pool: Executor) -> None:
upload_ = group.create_task(_maybe_upload(drive, src, dst))
hash_ = await check
node = await upload_
assert node.hash == hash_
if node.hash != hash_:
print(f"mismatch {src}")
await drive.delete(node)
raise Exception("upload failed")
print(f"upload {node.name}")


Expand Down

0 comments on commit 556052b

Please sign in to comment.