lib/intercom/request.rb in intercom-2.4.2 vs lib/intercom/request.rb in intercom-2.4.3
- old
+ new
@@ -82,10 +82,10 @@
def parse_body(decoded_body, response)
parsed_body = nil
return parsed_body if decoded_body.nil? || decoded_body.strip.empty?
begin
parsed_body = JSON.parse(decoded_body)
- rescue JSON::ParserError => e
+ rescue JSON::ParserError => _
raise_errors_on_failure(response)
end
raise_application_errors_on_failure(parsed_body, response.code.to_i) if parsed_body['type'] == 'error.list'
parsed_body
end