Skip to content

Commit

Permalink
fix(Bank Transaction): error in party matching should not block submi…
Browse files Browse the repository at this point in the history
…tting
  • Loading branch information
barredterra committed Nov 28, 2024
1 parent 69bd90b commit b012502
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ def before_submit(self):
self.set_status()

if frappe.db.get_single_value("Accounts Settings", "enable_party_matching"):
self.auto_set_party()
try:
self.auto_set_party()
except Exception:
frappe.log_error(title=_("Error in party matching"))

def before_update_after_submit(self):
self.validate_duplicate_references()
Expand Down

0 comments on commit b012502

Please sign in to comment.