lib/rentjuicer/listings.rb in rentjuicer-0.7.1 vs lib/rentjuicer/listings.rb in rentjuicer-0.7.2

- old
+ new

@@ -63,10 +63,10 @@ super(response) @limit = limit end def properties - return [] if self.body.listings.blank? + return [] if !self.success? || self.body.listings.blank? @cached_properties ||= begin props = [] self.body.listings.each do |listing| props << Rentjuicer::Listing.new(listing) end