From c6fe9b8fc749a520f0157d62ff9dc471cb8883d0 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 23 Feb 2020 10:42:13 -0800 Subject: Fix subscription checking breaking due to workers crashing The try statement was missing an except clause. So if there was an exception such as the tor browser being closed or getting a 429 error during the request, the workers would crash until there were none left to handle checking. --- youtube/subscriptions.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'youtube') diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py index 7a39b23..9298963 100644 --- a/youtube/subscriptions.py +++ b/youtube/subscriptions.py @@ -319,6 +319,8 @@ def check_channel_worker(): channel_id = check_channels_queue.get() try: _get_upstream_videos(channel_id) + except Exception: + traceback.print_exc() finally: checking_channels.remove(channel_id) -- cgit v1.2.3