2
0

Handle unreachable network error for search services (#36587)

This commit is contained in:
Matt Jankowski
2025-10-27 09:28:56 -04:00
committed by GitHub
parent 38f15a89fe
commit b60bae6361
3 changed files with 3 additions and 3 deletions

View File

@@ -256,7 +256,7 @@ class AccountSearchService < BaseService
ActiveRecord::Associations::Preloader.new(records: records, associations: [:account_stat, { user: :role }]).call
records
rescue Faraday::ConnectionFailed, Parslet::ParseFailed
rescue Faraday::ConnectionFailed, Parslet::ParseFailed, Errno::ENETUNREACH
nil
end