Fix NotFoundException having it's own response rather than a backtrace

This commit is contained in:
techmetx11 2023-06-13 21:01:30 +01:00
parent f32db98779
commit 971b8c74b7
No known key found for this signature in database
GPG Key ID: 20E0C88A0E7E5AF2

View File

@ -334,8 +334,6 @@ module Invidious::Routes::API::V1::Videos
begin
comments = Comments.fetch_youtube(id, continuation, format, locale, thin_mode, region, sort_by: sort_by)
rescue ex : NotFoundException
return error_json(404, ex)
rescue ex
return error_json(500, ex, {"errorHtml" => error_template_message(env, ex)})
end