Skip to content

Commit

Permalink
error on 300
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair authored Jun 21, 2022
1 parent 4254371 commit 69a3ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parfive/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 69a3ae9

Please # to comment.