lib/rufus/sc/jobs.rb in rufus-scheduler-2.0.19 vs lib/rufus/sc/jobs.rb in rufus-scheduler-2.0.20

- old
+ new

@@ -196,10 +196,10 @@ job_thread = nil to_job.unschedule if to_job - rescue Exception => e + rescue (@scheduler.options[:exception] || Exception) => e @scheduler.do_handle_exception(self, e) end @running = false