Skip to content

Commit

Permalink
Merge pull request justinweiss#25 from yaauie/failure-catching
Browse files Browse the repository at this point in the history
Catch everything thrown for on_failure hooks
  • Loading branch information
justinweiss committed Oct 30, 2011
2 parents b38de54 + 2e36669 commit fb12a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque_unit/resque.rb
Expand Up @@ -208,7 +208,7 @@ def perform_with_hooks(job_payload)

# If an exception occurs during the job execution, look for an
# on_failure hook then re-raise.
rescue => e
rescue Object => e
failure_hooks.each { |hook| job_class.send(hook, e, *job_payload["args"]) }
raise e
end
Expand Down

0 comments on commit fb12a1a

Please sign in to comment.