From 94cf50ac3ac87a2a4919d234628e5c84a05f6fac Mon Sep 17 00:00:00 2001 From: ggman12 Date: Tue, 17 Feb 2026 16:09:09 -0500 Subject: [PATCH] make return consistant --- src/adsb/download_and_list_icaos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adsb/download_and_list_icaos.py b/src/adsb/download_and_list_icaos.py index fcba0a5..6eda8a2 100644 --- a/src/adsb/download_and_list_icaos.py +++ b/src/adsb/download_and_list_icaos.py @@ -113,7 +113,7 @@ def process_single_day(target_day: datetime) -> tuple[str | None, list[str]]: extract_dir = download_and_extract(version_date) if not extract_dir: print(f"Failed to download/extract data for {date_str}") - return None, [] + raise Exception(f"No data available for {date_str}") icaos = list_icao_folders(extract_dir) print(f"Found {len(icaos)} ICAOs for {date_str}")