Skip to content

Commit

Permalink
grid_download download error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago Porto Flores committed Oct 15, 2023
1 parent c087b86 commit 48c1729
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 48c1729

Please sign in to comment.