1
0

Fix dashboard crash on ElasticSearch server error (#23751)

This commit is contained in:
Claire 2023-03-15 04:01:49 +01:00 committed by GitHub
parent 15fdd94e2f
commit 9875be09fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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