Fix filesize.decimal call in requests downloader size exception

This commit is contained in:
rlaphoenix 2023-05-17 03:32:08 +01:00
parent dd64212ad2
commit 55a86ac6c9
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ def requests(
download_sizes.clear() download_sizes.clear()
if file_size and written < int(file_size): if file_size and written < int(file_size):
raise ValueError( 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 return 0