From f787e4e2027583476ca34bd01c8462f6459369bb Mon Sep 17 00:00:00 2001 From: James Taylor Date: Fri, 31 Jan 2020 20:06:15 -0800 Subject: Give a proper error message for 429 errors These occur when too many requests are coming from a Tor exit node. Before, there would be an error page with an exception instructing users to report the issue. But this is an expected and persistent issue. --- youtube/watch.py | 1 + 1 file changed, 1 insertion(+) (limited to 'youtube/watch.py') diff --git a/youtube/watch.py b/youtube/watch.py index 7106345..388a8e1 100644 --- a/youtube/watch.py +++ b/youtube/watch.py @@ -287,6 +287,7 @@ def get_watch_page(video_id=None): gevent.spawn(extract_info, video_id) ) gevent.joinall(tasks) + util.check_gevent_exceptions(tasks[1]) comments_info, info = tasks[0].value, tasks[1].value if info['error']: -- cgit v1.2.3