Skip to content
代码片段 群组 项目
提交 4daa6da5 编辑于 作者: Stan Hu's avatar Stan Hu
浏览文件

Merge branch 'catch-redis-address-error' into 'master'

Catch redis address error

Closes omnibus-gitlab#2545

See merge request !12542
No related branches found
No related tags found
无相关合并请求
...@@ -74,5 +74,5 @@ ...@@ -74,5 +74,5 @@
end end
end end
end end
rescue Redis::BaseError, SocketError, Errno::ENOENT, Errno::EAFNOSUPPORT, Errno::ECONNRESET, Errno::ECONNREFUSED rescue Redis::BaseError, SocketError, Errno::ENOENT, Errno::EADDRNOTAVAIL, Errno::EAFNOSUPPORT, Errno::ECONNRESET, Errno::ECONNREFUSED
end end
...@@ -25,7 +25,7 @@ def ensure_application_settings! ...@@ -25,7 +25,7 @@ def ensure_application_settings!
def cached_application_settings def cached_application_settings
begin begin
::ApplicationSetting.cached ::ApplicationSetting.cached
rescue ::Redis::BaseError, ::Errno::ENOENT rescue ::Redis::BaseError, ::Errno::ENOENT, ::Errno::EADDRNOTAVAIL
# In case Redis isn't running or the Redis UNIX socket file is not available # In case Redis isn't running or the Redis UNIX socket file is not available
end end
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册