mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-22 10:58:50 +00:00
Catch errors in 'fetch_video' fibers
This commit is contained in:
@@ -412,8 +412,7 @@ get "/captions/:id" do |env|
|
||||
begin
|
||||
video = get_video(id, client, PG_DB)
|
||||
rescue ex
|
||||
error_message = ex.message
|
||||
next templated "error"
|
||||
halt env, status_code: 403
|
||||
end
|
||||
|
||||
env.response.content_type = "application/json"
|
||||
|
||||
Reference in New Issue
Block a user