mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
fix: Plaid TypeError in add_bank_accounts (#20335)
This commit is contained in:
@@ -53,7 +53,11 @@ def add_institution(token, response):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def add_bank_accounts(response, bank, company):
|
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)
|
bank = json.loads(bank)
|
||||||
result = []
|
result = []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user