Skip to content

Commit

Permalink
Fix filesize.decimal call in requests downloader size exception
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaphoenix committed May 17, 2023
1 parent dd64212 commit 55a86ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devine/core/downloaders/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def requests(
download_sizes.clear()
if file_size and written < int(file_size):
raise ValueError(
f"{url} finished downloading unexpectedly, got {decimal(written)}/{decimal(file_size)}")
f"{url} finished downloading unexpectedly, got {decimal(written)}/{decimal(int(file_size))}")

return 0

Expand Down

0 comments on commit 55a86ac

Please sign in to comment.