lib/airborne/base.rb in airborne-0.1.11 vs lib/airborne/base.rb in airborne-0.1.12

- old
+ new

@@ -77,8 +77,11 @@ def set_response(res) @response = res @body = res.body @headers = HashWithIndifferentAccess.new(res.headers) unless res.headers.nil? - @json_body = JSON.parse(res.body, symbolize_names: true) unless res.body.empty? + begin + @json_body = JSON.parse(res.body, symbolize_names: true) unless res.body.empty? + rescue + end end end