fix: reverted error message

This commit is contained in:
pateljannat
2021-05-04 17:43:09 +05:30
parent b7d93c1b50
commit 45ec16d9e4

View File

@@ -53,7 +53,8 @@ def create_invite_request(invite_email):
}).save(ignore_permissions=True)
return "OK"
except frappe.UniqueValidationError:
frappe.throw(_("Email {0} has already been used to request an invitation").format(invite_email))
frappe.throw(_("Email {0} has already been used to request an invite").format(invite_email))
@frappe.whitelist(allow_guest=True)
def update_invite(data):