mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-27 18:11:25 +00:00
videos: remove unused 'VideoRedirect' exception
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user