diff options
| author | saltycrys <73420320+saltycrys@users.noreply.github.com> | 2020-11-30 12:57:25 +0100 |
|---|---|---|
| committer | saltycrys <73420320+saltycrys@users.noreply.github.com> | 2020-11-30 12:57:25 +0100 |
| commit | 0f08cc5aa9c6fe2c9810872b375354a9d6549347 (patch) | |
| tree | 876fb8c73b7e555a043770bbec4b97b7de1dc651 /src | |
| parent | 3dac33ffbaecff281a46b6d562a2c69f086ff33c (diff) | |
| download | invidious-0f08cc5aa9c6fe2c9810872b375354a9d6549347.tar.gz invidious-0f08cc5aa9c6fe2c9810872b375354a9d6549347.tar.bz2 invidious-0f08cc5aa9c6fe2c9810872b375354a9d6549347.zip | |
Remove backtrace on YouTube error
YouTube returning an error is not a bug in Invidious, so it should not print
a backtrace.
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 20048460..8b20c181 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -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, |
