lib/bobot/error_parser.rb in bobot-4.11.0 vs lib/bobot/error_parser.rb in bobot-4.13.0

- old
+ new

@@ -34,10 +34,10 @@ # # response - A HTTParty::Response object. # # Returns nil if no errors were found, otherwises raises appropriately def raise_errors_from(response, extras = {}) - return false unless response.key?('error') + return false if response.nil? || !response.key?('error') error = response['error'] error_code = error['code'] error_subcode = error['error_subcode']