diff options
author | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-10-19 05:55:06 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-10-19 05:55:06 +0000 |
commit | 880792a04eaed2409019d54961ecddd402d8471c (patch) | |
tree | 34bf5426273928cb20dd91913854dfb216c55fa3 /app/services/web_hook_service.rb | |
parent | b9cb0e1632d21860f0e36dc970e3318da632330f (diff) | |
download | gitlab-ce-880792a04eaed2409019d54961ecddd402d8471c.tar.gz |
Catch `RedirectionTooDeep` Exception in webhooks
Diffstat (limited to 'app/services/web_hook_service.rb')
-rw-r--r-- | app/services/web_hook_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/web_hook_service.rb b/app/services/web_hook_service.rb index 144d738dfd2..1fee8bfcd31 100644 --- a/app/services/web_hook_service.rb +++ b/app/services/web_hook_service.rb @@ -43,7 +43,7 @@ class WebHookService http_status: response.code, message: response.to_s } - rescue SocketError, OpenSSL::SSL::SSLError, Errno::ECONNRESET, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Net::OpenTimeout, Net::ReadTimeout, Gitlab::HTTP::BlockedUrlError => e + rescue SocketError, OpenSSL::SSL::SSLError, Errno::ECONNRESET, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Net::OpenTimeout, Net::ReadTimeout, Gitlab::HTTP::BlockedUrlError, Gitlab::HTTP::RedirectionTooDeep => e log_execution( trigger: hook_name, url: hook.url, |