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()