Commit d8f4c363 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7175 from jvanbaarsen/always-call-hooks

Call every service, even if one fails
parents d3fcb60e e364a852
...@@ -391,7 +391,11 @@ class Project < ActiveRecord::Base ...@@ -391,7 +391,11 @@ class Project < ActiveRecord::Base
services.each do |service| services.each do |service|
# Call service hook only if it is active # Call service hook only if it is active
begin
service.execute(data) if service.active service.execute(data) if service.active
rescue => e
logger.error(e)
end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment