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

pull/3770/head
techmetx11 1 year ago
parent f32db98779
commit 971b8c74b7
No known key found for this signature in database
GPG Key ID: 20E0C88A0E7E5AF2

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

Loading…
Cancel
Save