fix: Exception handling in Plaid Integration

fix: Exception handling in Plaid Integration
This commit is contained in:
RJPvT
2022-09-12 05:53:23 +02:00
committed by GitHub
parent 1ee62a8342
commit 0b36799e8f

View File

@@ -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"])):