From 051bed78da487eb04ea34bd945d688ceee8b1620 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Sat, 24 Sep 2016 00:16:58 +0530 Subject: [PATCH] [minor] allow ignore_validate for user --- frappe/core/doctype/user/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/user/user.py b/frappe/core/doctype/user/user.py index 1adc6fa900..01b590934b 100644 --- a/frappe/core/doctype/user/user.py +++ b/frappe/core/doctype/user/user.py @@ -193,7 +193,7 @@ class User(Document): def send_password_notification(self, new_password): try: - if self.in_insert: + if getattr(self, 'in_insert', False): if self.name not in STANDARD_USERS: if new_password: # new password given, no email required