mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-22 08:09:51 +05:30
Fix NotFoundException having it's own response rather than a backtrace
This commit is contained in:
parent
f32db98779
commit
971b8c74b7
@ -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 New Issue
Block a user