mirror of
https://github.com/devine-dl/devine.git
synced 2025-04-29 17:49:44 +00:00
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…
x
Reference in New Issue
Block a user