forked from DRMTalks/devine
Fix filesize.decimal call in requests downloader size exception
This commit is contained in:
parent
dd64212ad2
commit
55a86ac6c9
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue