diff --git a/skymap_scanner/utils/data_handling.py b/skymap_scanner/utils/data_handling.py index eedd403c3..9dbfeda6a 100644 --- a/skymap_scanner/utils/data_handling.py +++ b/skymap_scanner/utils/data_handling.py @@ -88,12 +88,9 @@ def backoff_sleep(attempt: int): ) from e # Step 2: Write the file - try: - with open(dest, "wb") as file: - for chunk in response.iter_content(chunk_size=8192): - file.write(chunk) - except IOError as e: - raise RuntimeError(f"File download failed during file write: {e}") from e + with open(dest, "wb") as file: + for chunk in response.iter_content(chunk_size=8192): + file.write(chunk) # Step 3: Ensure the file was created successfully if dest.is_file():