Skip to content

Commit

Permalink
Accept one new type of exception in retry utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulou committed Jan 29, 2019
1 parent d869114 commit 2571e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nsq/retry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.with_retries(opts = {}, &block)
attempts += 1
return block.call(attempts)

rescue UnexpectedFrameError, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EHOSTUNREACH,
rescue UnexpectedFrameError, ErrorFrameException, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EHOSTUNREACH,
Errno::ENETDOWN, Errno::ENETUNREACH, Errno::ETIMEDOUT, Timeout::Error => ex

raise ex if attempts >= max_attempts
Expand Down

0 comments on commit 2571e34

Please sign in to comment.