lib/great_schools.rb in great_schools-0.2.0 vs lib/great_schools.rb in great_schools-0.2.1

- old
+ new

@@ -65,9 +65,11 @@ response = HTTParty.get("#{DOMAIN}/#{path}", query: parameters, format: :xml) if response.code.eql?(200) parse(response.values.first) # strip the container element before parsing + elsif response.body.blank? + nil # no error to parse, return nothing else raise GreatSchools::Error.new(response) end end