mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-03 22:21:55 +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:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user