Catch everything thrown for on_failure hooks #25

Merged
merged 1 commit into from Oct 30, 2011
@@ -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