Skip to content
Snippets Groups Projects
Commit ca0f1078 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge branch 'webhook-rescue' into 'master'

Webhook rescue Errno::ECONNRESET

Fixes #1821

See merge request !1466
parents 46dd5fc4 a89d7adf
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
@@ -48,7 +48,7 @@ class WebHook < ActiveRecord::Base
Loading
@@ -48,7 +48,7 @@ class WebHook < ActiveRecord::Base
verify: false, verify: false,
basic_auth: auth) basic_auth: auth)
end end
rescue SocketError, Errno::ECONNREFUSED, Net::OpenTimeout => e rescue SocketError, Errno::ECONNRESET, Errno::ECONNREFUSED, Net::OpenTimeout => e
logger.error("WebHook Error => #{e}") logger.error("WebHook Error => #{e}")
false false
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment