From 97c65b703f2587d17da2ea2a6fac162f882630f9 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 2 May 2016 13:28:05 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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