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:
saltycrys 2020-11-30 12:57:25 +01:00
parent 3dac33ffba
commit 0f08cc5aa9

View File

@ -998,7 +998,7 @@ def fetch_video(id, region)
}.try { |a| JSON::Any.new(a) } || JSON::Any.new([] of JSON::Any) }.try { |a| JSON::Any.new(a) } || JSON::Any.new([] of JSON::Any)
end end
raise info["reason"]?.try &.as_s || "" if !info["videoDetails"]? raise InfoException.new(info["reason"]?.try &.as_s || "") if !info["videoDetails"]?
video = Video.new({ video = Video.new({
id: id, id: id,