summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-04 17:09:00 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-04 17:09:00 +0300
commitd8f4c363d65ab6c2f06f70edc742bee2c1431cdf (patch)
treeec1b91b28e88ba6abed3f4ddfdc016a7acf91755
parentd3fcb60e43c92d496964db5df7bbf1062fd9524d (diff)
parente364a852afde6a1897221b5c17c2a4be56a40b43 (diff)
downloadgitlab-ce-d8f4c363d65ab6c2f06f70edc742bee2c1431cdf.tar.gz
Merge pull request #7175 from jvanbaarsen/always-call-hooks
Call every service, even if one fails
-rw-r--r--app/models/project.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 96e9b515cb5..339143196a7 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -391,7 +391,11 @@ class Project < ActiveRecord::Base
services.each do |service|
# Call service hook only if it is active
- service.execute(data) if service.active
+ begin
+ service.execute(data) if service.active
+ rescue => e
+ logger.error(e)
+ end
end
end