Skip to content

Commit

Permalink
rescue everything for haystack
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomayko committed Jan 27, 2010
1 parent a64a03d commit 1b54101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github-services.rb
Expand Up @@ -54,7 +54,7 @@ def service(name)
data = JSON.parse(params[:data])
payload = JSON.parse(params[:payload])
Timeout.timeout(20, ServiceTimeout) { yield data, payload }
rescue => boom
rescue Object => boom
# redact sensitive info in hook_data hash
hook_data = data || params[:data]
%w[password token].each { |key| hook_data[key] &&= '<redacted>' }
Expand Down

0 comments on commit 1b54101

Please sign in to comment.