lib/dialers/caller.rb in dialers-0.1.0 vs lib/dialers/caller.rb in dialers-0.1.1
- old
+ new
@@ -82,10 +82,10 @@
Dialers::Transformable.new(response)
end
def http_call(request_options, current_retries = 0)
call_api(request_options)
- rescue Faraday::ParsingError => _exception
+ rescue Faraday::ParsingError => exception
raise Dialers::ParsingError.new(exception)
rescue Faraday::ConnectionFailed => exception
raise Dialers::UnreachableError.new(exception)
rescue Faraday::TimeoutError => exception
retry_call(request_options, exception, current_retries)