aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-01-31 20:06:15 -0800
committerJames Taylor <user234683@users.noreply.github.com>2020-01-31 20:06:15 -0800
commitf787e4e2027583476ca34bd01c8462f6459369bb (patch)
tree3ac533d55d3f524a49abbd83957b9c87d65f357a /youtube/watch.py
parentcd4a2fb0ebb63600d9e66fa695c6517a968a78f8 (diff)
downloadyt-local-f787e4e2027583476ca34bd01c8462f6459369bb.tar.lz
yt-local-f787e4e2027583476ca34bd01c8462f6459369bb.tar.xz
yt-local-f787e4e2027583476ca34bd01c8462f6459369bb.zip
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.
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py1
1 files changed, 1 insertions, 0 deletions
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']: