mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Catch errors in 'fetch_video' fibers
This commit is contained in:
parent
3beac53c89
commit
09cd7bcc66
2 changed files with 5 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue