From 936dd4dc288f8524ee03d61a1e1424c67f5a4dc5 Mon Sep 17 00:00:00 2001 From: Jarian Cottingham Date: Sat, 31 Jan 2026 11:02:54 -0600 Subject: [PATCH] Force exit if RSS feed file not found, as requested --- scraper/cron_scraper.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scraper/cron_scraper.py b/scraper/cron_scraper.py index 9e75f1f..8c92503 100644 --- a/scraper/cron_scraper.py +++ b/scraper/cron_scraper.py @@ -36,9 +36,10 @@ def get_feed_file_path(): print(f"Found feed file at: {path}") return path - # If no file found, return default and let it fail gracefully - print("Warning: RSS feed file not found in any expected location") - return "./rss_feeds.json" + # If no file found, exit the program + print("Error: RSS feed file not found in any expected location") + print("Exiting program...") + exit(1) # Get the feed file path FEED_FILE = get_feed_file_path()