lib/backup/model.rb in backup-3.7.0 vs lib/backup/model.rb in backup-3.7.1

- old
+ new

@@ -271,17 +271,23 @@ procedure.is_a?(Proc) ? procedure.call : procedure.each(&:perform!) end syncers.each(&:perform!) + rescue Interrupt + @interrupted = true + raise + rescue Exception => err @exception = err ensure - set_exit_status - @finished_at = Time.now.utc - log!(:finished) - after_hook + unless @interrupted + set_exit_status + @finished_at = Time.now.utc + log!(:finished) + after_hook + end end ## # The duration of the backup process (in format: HH:MM:SS) def duration