From 69a3ae9fc3c9429a437bd2a85287b12c30043d70 Mon Sep 17 00:00:00 2001 From: Stuart Mumford Date: Tue, 21 Jun 2022 14:46:55 +0100 Subject: [PATCH] error on 300 --- parfive/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parfive/downloader.py b/parfive/downloader.py index cf7806c..770ab00 100644 --- a/parfive/downloader.py +++ b/parfive/downloader.py @@ -687,7 +687,7 @@ async def _http_download_worker(self, session, url, chunksize, http_range, queue resp.headers, ) - if resp.status < 200 or resp.status > 300: + if resp.status < 200 or resp.status >= 300: raise MultiPartDownloadError(resp) while True: