From e33bae2e50799e3617432f294cf36581404a5114 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Mon, 17 Jun 2019 20:57:10 -0700 Subject: watch: Fix error page --- youtube/watch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'youtube/watch.py') 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: -- cgit v1.2.3