mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-10 07:22:16 +05:30
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
@ -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 New Issue
Block a user