diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2014-07-29 13:49:46 +0400 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2014-07-29 13:49:46 +0400 |
commit | 7cefdb49eb460e87e3c3b827af32ae1b6834c4da (patch) | |
tree | b1ce1dcdb146e094d5929b0c385495239cd8e663 /app/services/test_hook_service.rb | |
parent | d30454e112378c24cc9edfd7b511ca42bdb1e399 (diff) |
Prevent 500 if hook url is down, fixes #7376
Diffstat (limited to 'app/services/test_hook_service.rb')
-rw-r--r-- | app/services/test_hook_service.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/services/test_hook_service.rb b/app/services/test_hook_service.rb index 17d86a7a274..b6b1ef29b51 100644 --- a/app/services/test_hook_service.rb +++ b/app/services/test_hook_service.rb @@ -2,5 +2,8 @@ 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 |