From 5fa1621bb067968bef83cdd8eb4e9b7a98b60b66 Mon Sep 17 00:00:00 2001 From: kaliko Date: Fri, 23 Oct 2020 20:30:03 +0200 Subject: [PATCH] feeds: catch ConnectionError to avoid killing thread --- sid/feeds.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sid/feeds.py b/sid/feeds.py index 7fe5825..490d89d 100644 --- a/sid/feeds.py +++ b/sid/feeds.py @@ -124,6 +124,8 @@ class FeedMonitor(threading.Thread): for feed in self.feeds_list: try: self.new_posts(feed) + except ConnectionError as err: # Non fatal exception + self.plugin.log.error(f'connection error on {feed}: {err}') except URLError as err: # Non fatal exception self.plugin.log.error(f'error for {feed}: {err.reason}') except Exception as err: # Unknown execption, killing thread anyway -- 2.39.5