mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-29 00:01:18 -05:00
Fix name error
This commit is contained in:
parent
ad0c5b2e15
commit
81e9ab07f5
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user