diff --git a/app/models/customer.rb b/app/models/customer.rb index 43554ad..7695f5f 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -138,7 +138,11 @@ class Customer < ActiveRecord::Base push else puts "Getting '#{name}'" - @details[name] + begin + return @details[name] + rescue + return nil + end end end