Skip to content

Commit

Permalink
Added status_code to print to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
HertugHelms committed Jul 31, 2023
1 parent 00848ef commit 10a97e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions creodias_finder/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def _download_raw_data(url, outfile, show_progress):
try:
downloaded_bytes = 0
with requests.get(url, stream=True, timeout=100) as req:
print(req.status_code)
with tqdm(unit="B", unit_scale=True, disable=not show_progress) as progress:
chunk_size = 2**20 # download in 1 MB chunks
with open(outfile_temp, "wb") as fout:
Expand Down

0 comments on commit 10a97e4

Please sign in to comment.