From 55a86ac6c9d3bd264694514a536c1e968749e70f Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Wed, 17 May 2023 03:32:08 +0100 Subject: [PATCH] Fix filesize.decimal call in requests downloader size exception --- devine/core/downloaders/requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/downloaders/requests.py b/devine/core/downloaders/requests.py index 57f0e84..d2d2fa5 100644 --- a/devine/core/downloaders/requests.py +++ b/devine/core/downloaders/requests.py @@ -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