diff --git a/app/models/customer.rb b/app/models/customer.rb index 7695f5f..e915176 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -95,7 +95,11 @@ class Customer < ActiveRecord::Base # returns the QBO customer def get_customer (id) - get_base.find_by_id(id) + begin + return get_base.find_by_id(id) + rescue + return nil + end end # proforms a bruteforce sync operation