mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-15 00:06:22 +00:00
feat: check duplicate contact explicitly
This commit is contained in:
@@ -92,6 +92,10 @@ def create_customer(user_details):
|
||||
})
|
||||
|
||||
contact.insert()
|
||||
|
||||
except frappe.DuplicateEntryError:
|
||||
return customer.name
|
||||
|
||||
except Exception as e:
|
||||
frappe.log_error(frappe.get_traceback(), _("Contact Creation Failed"))
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user