Fix NotFoundException having it's own response rather than a backtrace
This commit is contained in:
parent
f32db98779
commit
971b8c74b7
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue