Browse Source

Fix dashboard crash on ElasticSearch server error (#23751)

closed-social-glitch-2
Claire 1 year ago
committed by GitHub
parent
commit
9875be09fe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/lib/admin/system_check/elasticsearch_check.rb

+ 1
- 1
app/lib/admin/system_check/elasticsearch_check.rb View File

@ -31,7 +31,7 @@ class Admin::SystemCheck::ElasticsearchCheck < Admin::SystemCheck::BaseCheck
def running_version
@running_version ||= begin
Chewy.client.info['version']['number']
rescue Faraday::ConnectionFailed
rescue Faraday::ConnectionFailed, Elasticsearch::Transport::Transport::Error
nil
end
end

Loading…
Cancel
Save