Fix name error

This commit is contained in:
Anurag Goel 2011-12-06 16:14:00 -08:00
parent ad0c5b2e15
commit 81e9ab07f5

View File

@ -566,7 +566,7 @@ module Stripe
# Would use :symbolize_names => true, but apparently there is
# some library out there that makes symbolize_names not work.
resp = JSON.parse(rbody)
rescue JSON::ParseError
rescue JSON::ParserError
raise APIError.new("Invalid response object from API: #{rbody.inspect} (HTTP response code was #{rcode})")
end