lib/asir/retry_behavior.rb in asir-1.2.1 vs lib/asir/retry_behavior.rb in asir-1.2.2

- old
+ new

@@ -22,10 +22,12 @@ result = done = last_exception = nil begin n_try += 1 result = yield :try, n_try done = true - rescue *Error::Unforwardable.unforwardable => exc + rescue *Error::Unrecoverable.modules + raise + rescue *Error::Unforwardable.unforwardable raise rescue ::Exception => exc last_exception = exc yield :rescue, exc if ! try_max || try_max > n_try