mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Remove backtrace on YouTube error
YouTube returning an error is not a bug in Invidious, so it should not print a backtrace.
This commit is contained in:
parent
3dac33ffba
commit
0f08cc5aa9
1 changed files with 1 additions and 1 deletions
|
@ -998,7 +998,7 @@ def fetch_video(id, region)
|
|||
}.try { |a| JSON::Any.new(a) } || JSON::Any.new([] of JSON::Any)
|
||||
end
|
||||
|
||||
raise info["reason"]?.try &.as_s || "" if !info["videoDetails"]?
|
||||
raise InfoException.new(info["reason"]?.try &.as_s || "") if !info["videoDetails"]?
|
||||
|
||||
video = Video.new({
|
||||
id: id,
|
||||
|
|
Loading…
Reference in a new issue