mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-18 12:14:27 -05: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
@ -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