From 971b8c74b70051290764cf970226c45bd341c397 Mon Sep 17 00:00:00 2001 From: techmetx11 Date: Tue, 13 Jun 2023 21:01:30 +0100 Subject: [PATCH] Fix NotFoundException having it's own response rather than a backtrace --- src/invidious/routes/api/v1/videos.cr | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/invidious/routes/api/v1/videos.cr b/src/invidious/routes/api/v1/videos.cr index bc1da917..50ee22e5 100644 --- a/src/invidious/routes/api/v1/videos.cr +++ b/src/invidious/routes/api/v1/videos.cr @@ -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