diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-12-04 16:07:01 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-12-04 16:07:01 +0300 |
commit | db2edff937cbc309c10bb1a987356a58f8a9c8fa (patch) | |
tree | d2d19fb102fb834938a0560f610e15b4a54f3a5f /app/services/test_hook_service.rb | |
parent | 490ae737c748a393e57040bfd649bb1c4244e494 (diff) |
Handle web hook exception
Write to log if web hook cant be executed. This prevents 500 error when
test web hook with invalid URL and prevent exceptions and retries in
sidekiq
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/services/test_hook_service.rb')
-rw-r--r-- | app/services/test_hook_service.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/services/test_hook_service.rb b/app/services/test_hook_service.rb index b6b1ef29b51..17d86a7a274 100644 --- a/app/services/test_hook_service.rb +++ b/app/services/test_hook_service.rb @@ -2,8 +2,5 @@ class TestHookService def execute(hook, current_user) data = GitPushService.new.sample_data(hook.project, current_user) hook.execute(data) - true - rescue SocketError - false end end |