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