mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update customer.rb
This commit is contained in:
1 parent
10ec2a1b1b
commit
476a194410
1 file changed
+2
-1
@@ -125,8 +125,9 @@ class Customer < ActiveRecord::Base
|
||||
begin
|
||||
tries ||= 3
|
||||
Qbo.get_base(:customer).service.update(@details)
|
||||
rescue
|
||||
rescue Exception => e
|
||||
retry unless (tries -= 1).zero?
|
||||
errors.add(:details, e.message)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user