Suppress AddressFamilyError in link verification (#23204)
* Suppress AddressFamilyError * clarify comment
This commit is contained in:
		
					parent
					
						
							
								448be26b34
							
						
					
				
			
			
				commit
				
					
						f2a6e71bb6
					
				
			
		
					 2 changed files with 23 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -10,7 +10,7 @@ class VerifyLinkService < BaseService
 | 
			
		|||
    return unless link_back_present?
 | 
			
		||||
 | 
			
		||||
    field.mark_verified!
 | 
			
		||||
  rescue OpenSSL::SSL::SSLError, HTTP::Error, Addressable::URI::InvalidURIError, Mastodon::HostValidationError, Mastodon::LengthValidationError => e
 | 
			
		||||
  rescue OpenSSL::SSL::SSLError, HTTP::Error, Addressable::URI::InvalidURIError, Mastodon::HostValidationError, Mastodon::LengthValidationError, IPAddr::AddressFamilyError => e
 | 
			
		||||
    Rails.logger.debug "Error fetching link #{@url}: #{e}"
 | 
			
		||||
    nil
 | 
			
		||||
  end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue