Force exit if RSS feed file not found, as requested

This commit is contained in:
Jarian Cottingham 2026-01-31 11:02:54 -06:00
parent 874c64c9d1
commit 936dd4dc28

View File

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