mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 23:10:26 +00:00
fix: Exception handling in Plaid Integration
fix: Exception handling in Plaid Integration
This commit is contained in:
@@ -226,7 +226,7 @@ def new_bank_transaction(transaction):
|
||||
try:
|
||||
tags += transaction["category"]
|
||||
tags += ["Plaid Cat. {}".format(transaction["category_id"])]
|
||||
except KeyError:
|
||||
except (KeyError, TypeError):
|
||||
pass
|
||||
|
||||
if not frappe.db.exists("Bank Transaction", dict(transaction_id=transaction["transaction_id"])):
|
||||
@@ -273,4 +273,4 @@ def automatic_synchronization():
|
||||
@frappe.whitelist()
|
||||
def get_link_token_for_update(access_token):
|
||||
plaid = PlaidConnector(access_token)
|
||||
return plaid.get_link_token(update_mode=True)
|
||||
return plaid.get_link_token(update_mode=True)
|
||||
|
||||
Reference in New Issue
Block a user