gearheads
/
mastodon
Archived
2
0
Fork 0

Fix dashboard crash on ElasticSearch server error (#23751)

gh/stable
Claire 2023-03-15 04:01:49 +01:00
parent 46d6cb0f36
commit 0363064501
1 changed files with 1 additions and 1 deletions

View File

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