Force exit if RSS feed file not found, as requested
This commit is contained in:
parent
874c64c9d1
commit
936dd4dc28
@ -36,9 +36,10 @@ def get_feed_file_path():
|
|||||||
print(f"Found feed file at: {path}")
|
print(f"Found feed file at: {path}")
|
||||||
return path
|
return path
|
||||||
|
|
||||||
# If no file found, return default and let it fail gracefully
|
# If no file found, exit the program
|
||||||
print("Warning: RSS feed file not found in any expected location")
|
print("Error: RSS feed file not found in any expected location")
|
||||||
return "./rss_feeds.json"
|
print("Exiting program...")
|
||||||
|
exit(1)
|
||||||
|
|
||||||
# Get the feed file path
|
# Get the feed file path
|
||||||
FEED_FILE = get_feed_file_path()
|
FEED_FILE = get_feed_file_path()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user