Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Catch all objects thrown like Resque does in lib/resque/job.rb:155

  • Loading branch information...
commit 2e366698908d92d5758f3d827eaeded320c91869 1 parent b38de54
Ryan Biesemeyer yaauie authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/resque_unit/resque.rb
2  lib/resque_unit/resque.rb
@@ -208,7 +208,7 @@ def perform_with_hooks(job_payload)
208 208
209 209 # If an exception occurs during the job execution, look for an
210 210 # on_failure hook then re-raise.
211   - rescue => e
  211 + rescue Object => e
212 212 failure_hooks.each { |hook| job_class.send(hook, e, *job_payload["args"]) }
213 213 raise e
214 214 end

0 comments on commit 2e36669

Please sign in to comment.
Something went wrong with that request. Please try again.