lib/good_job/adapter.rb in good_job-4.2.1 vs lib/good_job/adapter.rb in good_job-4.3.0
- old
+ new
@@ -252,9 +252,9 @@
result
ensure
job.advisory_unlock
job.run_callbacks(:perform_unlocked)
- raise result.unhandled_error if result.unhandled_error
+ raise result.unhandled_error if result&.unhandled_error
end
end
end