fix: Plaid TypeError in add_bank_accounts (#20335)
This commit is contained in:
parent
f5374c182e
commit
444156184c
@ -53,7 +53,11 @@ def add_institution(token, response):
|
||||
|
||||
@frappe.whitelist()
|
||||
def add_bank_accounts(response, bank, company):
|
||||
response = json.loads(response) if not "accounts" in response else response
|
||||
try:
|
||||
response = json.loads(response)
|
||||
except TypeError:
|
||||
pass
|
||||
|
||||
bank = json.loads(bank)
|
||||
result = []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user