diff --git a/app/models/tax_svc.rb b/app/models/tax_svc.rb index 34313fe..ca36747 100644 --- a/app/models/tax_svc.rb +++ b/app/models/tax_svc.rb @@ -137,9 +137,9 @@ def request(uri, request_hash) end JSON.parse(res) - rescue *ERRORS_TO_RETRY.concat([RestClient::ExceptionWithResponse, - RestClient::ServerBrokeConnection, - RestClient::SSLCertificateNotVerified]) => e + rescue *(ERRORS_TO_RETRY + [RestClient::ExceptionWithResponse, + RestClient::ServerBrokeConnection, + RestClient::SSLCertificateNotVerified]) => e retry unless (tries -= 1).zero? logger.error e, 'Avalara Request Error' end