From 3405572ab09e3f29e52d9546b129d87d61b1af25 Mon Sep 17 00:00:00 2001 From: Shane Date: Thu, 8 May 2025 10:46:50 +1000 Subject: [PATCH] fix --- foodie_automator_rss.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/foodie_automator_rss.py b/foodie_automator_rss.py index f8d6d40..07ff619 100644 --- a/foodie_automator_rss.py +++ b/foodie_automator_rss.py @@ -451,6 +451,10 @@ def curate_from_rss(): print("No interesting RSS article found after attempts") logging.info("No interesting RSS article found after attempts") return None, None, random.randint(600, 1800) + except Exception as e: + logging.error(f"Unexpected error in curate_from_rss: {e}", exc_info=True) + print(f"Unexpected error in curate_from_rss: {e}") + return None, None, random.randint(600, 1800) def run_rss_automator(): lock_fd = None