From 2571e34f84caa7270d84b39b4875f6f0ae9223f4 Mon Sep 17 00:00:00 2001 From: Soulou Date: Tue, 29 Jan 2019 15:32:36 +0100 Subject: [PATCH] Accept one new type of exception in retry utils --- lib/nsq/retry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nsq/retry.rb b/lib/nsq/retry.rb index 7e08aa8..7432dee 100644 --- a/lib/nsq/retry.rb +++ b/lib/nsq/retry.rb @@ -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