videos: remove unused 'VideoRedirect' exception

This commit is contained in:
Samantaz Fox
2022-08-23 19:04:08 +02:00
parent 87a5d70062
commit d659a451d6
7 changed files with 18 additions and 35 deletions

View File

@@ -61,8 +61,6 @@ module Invidious::Routes::Watch
begin
video = get_video(id, region: params.region)
rescue ex : VideoRedirect
return env.redirect env.request.resource.gsub(id, ex.video_id)
rescue ex : NotFoundException
LOGGER.error("get_video not found: #{id} : #{ex.message}")
return error_template(404, ex)