From 70db4e7fc74e3ece3d4e16aef742efedf9e10582 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 9 Mar 2017 13:27:34 +0530 Subject: [PATCH] [fix] welcome mail if no other app --- frappe/core/doctype/user/user.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frappe/core/doctype/user/user.py b/frappe/core/doctype/user/user.py index d849b3cdac..04e04ef61f 100644 --- a/frappe/core/doctype/user/user.py +++ b/frappe/core/doctype/user/user.py @@ -265,7 +265,10 @@ class User(Document): link = self.reset_password() app_title = [t for t in frappe.get_hooks('app_title') if t != 'Frappe Framework'] - subject = _("Welcome to {0}").format(app_title[0]) + if app_title: + subject = _("Welcome to {0}").format(app_title[0]) + else: + subject = _("Complete Registration") self.send_login_mail(subject, "templates/emails/new_user.html", dict(