Improved error handling.
This commit is contained in:
parent
5812515fe5
commit
7565018702
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ class Transaction::ClearbitEnrichment
|
||||||
return if !user.email
|
return if !user.email
|
||||||
data = fetch(user.email)
|
data = fetch(user.email)
|
||||||
#p 'OO: ' + data.inspect
|
#p 'OO: ' + data.inspect
|
||||||
|
return if !data
|
||||||
|
|
||||||
config = Setting.get('clearbit_config')
|
config = Setting.get('clearbit_config')
|
||||||
return if !config
|
return if !config
|
||||||
|
|
Loading…
Reference in a new issue