aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-02-23 10:42:13 -0800
committerJames Taylor <user234683@users.noreply.github.com>2020-02-23 10:42:13 -0800
commitc6fe9b8fc749a520f0157d62ff9dc471cb8883d0 (patch)
tree35e9c5f976305d5af258ac9023f9edba068a28d6
parent77c4d913ca63b7909576a1f08ecb80b544f9a74e (diff)
downloadyt-local-c6fe9b8fc749a520f0157d62ff9dc471cb8883d0.tar.lz
yt-local-c6fe9b8fc749a520f0157d62ff9dc471cb8883d0.tar.xz
yt-local-c6fe9b8fc749a520f0157d62ff9dc471cb8883d0.zip
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.
-rw-r--r--youtube/subscriptions.py2
1 files changed, 2 insertions, 0 deletions
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)