lib/retries.rb in retries-0.0.4 vs lib/retries.rb in retries-0.0.5

- old
+ new

@@ -33,10 +33,10 @@ max_sleep_seconds = options[:max_sleep_seconds] || 1.0 if base_sleep_seconds > max_sleep_seconds raise "#{options_error_string} :base_sleep_seconds cannot be greater than :max_sleep_seconds." end handler = options[:handler] - exception_types_to_rescue = Array(options[:rescue]) || [StandardError] + exception_types_to_rescue = Array(options[:rescue] || StandardError) raise "#{options_error_string} with_retries must be passed a block" unless block_given? # Let's do this thing attempts = 0 start_time = Time.now