Skip to content

Commit

Permalink
stop raising requests status errors before the manual status code che…
Browse files Browse the repository at this point in the history
…ck, resolves #14
  • Loading branch information
meeb committed Oct 31, 2023
1 parent deda412 commit 3ab0fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bandcampsync/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def download_file(url, target, mode='wb', chunk_size=8192, logevery=10, disallow
last_log = 0
headers = {'User-Agent': USER_AGENT}
with requests.get(url, stream=True, headers=headers) as r:
r.raise_for_status()
#r.raise_for_status()
if r.status_code != 200:
raise DownloadBadStatusCode(f'Got non-200 status code: {r.status_code}')
try:
Expand Down

0 comments on commit 3ab0fe9

Please sign in to comment.