Skip to content

Commit

Permalink
Merge pull request #16 from tflores/issue-15
Browse files Browse the repository at this point in the history
grid_download download error handling
  • Loading branch information
gabriel-russo authored Oct 16, 2023
2 parents c087b86 + 48c1729 commit 6f424d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cbers4asat/tools/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def grid_download(
for chunk in req.iter_content(chunk_size=1024):
if chunk:
f.write(chunk)
else:
raise ValueError("Download unavailable")
else:
raise ValueError("Sensors available: mux and wfi")
else:
Expand Down

0 comments on commit 6f424d8

Please sign in to comment.