aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-06-17 20:57:10 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-06-17 20:57:10 -0700
commite33bae2e50799e3617432f294cf36581404a5114 (patch)
tree3e232bdb2e7cb58f3867dcd7fd7efdedf6bd877b /youtube/watch.py
parent1ba241186299df50a94efd3d410a4422bdc2d6c3 (diff)
downloadyt-local-e33bae2e50799e3617432f294cf36581404a5114.tar.lz
yt-local-e33bae2e50799e3617432f294cf36581404a5114.tar.xz
yt-local-e33bae2e50799e3617432f294cf36581404a5114.zip
watch: Fix error page
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/watch.py b/youtube/watch.py
index 72268a7..ac70fd4 100644
--- a/youtube/watch.py
+++ b/youtube/watch.py
@@ -160,8 +160,8 @@ def extract_info(downloader, *args, **kwargs):
def get_watch_page():
video_id = request.args['v']
if len(video_id) < 11:
- abort(404)
- abort(Response('Incomplete video id (too short): ' + video_id))
+ flask.abort(404)
+ flask.abort(flask.Response('Incomplete video id (too short): ' + video_id))
lc = request.args.get('lc', '')
if settings.route_tor: