diff --git a/src/invidious/routes/api/v1/videos.cr b/src/invidious/routes/api/v1/videos.cr index f60a492a6..cdf292fb2 100644 --- a/src/invidious/routes/api/v1/videos.cr +++ b/src/invidious/routes/api/v1/videos.cr @@ -187,7 +187,7 @@ module Invidious::Routes::API::V1::Videos begin video = get_video(id, region: region) - rescue : NotFoundException + rescue NotFoundException haltf env, 404 rescue haltf env, 500