lib/soapy_cake/client.rb in soapy_cake-2.2.4 vs lib/soapy_cake/client.rb in soapy_cake-2.2.5
- old
+ new
@@ -27,20 +27,18 @@
check_write_enabled!(request)
request.api_key = api_key
request.time_converter = time_converter
with_retries do
- begin
- response = Response.new(response_body(request), request.short_response?, time_converter)
- xml_response? ? response.to_xml : response.to_enum
- rescue RequestFailed => e
- raise RequestFailed.new(
- e.message,
- request_path: request.path,
- request_body: request.xml,
- response_body: e.response_body || response.body
- )
- end
+ response = Response.new(response_body(request), request.short_response?, time_converter)
+ xml_response? ? response.to_xml : response.to_enum
+ rescue RequestFailed => e
+ raise RequestFailed.new(
+ e.message,
+ request_path: request.path,
+ request_body: request.xml,
+ response_body: e.response_body || response.body
+ )
end
end
protected