[minor] fix msgprint from duplicate name

This commit is contained in:
Pratik Vyas 2014-11-14 17:55:32 +05:30
parent 26f1cc8b97
commit 4fb0700dc0

View file

@ -203,7 +203,7 @@ class BaseDocument(object):
except Exception, e:
if e.args[0]==1062:
type, value, traceback = sys.exc_info()
frappe.msgprint(_("Duplicate name {0} {1}".format(self.doctype, self.name)))
frappe.msgprint(_("Duplicate name {0} {1}").format(self.doctype, self.name))
raise frappe.NameError, (self.doctype, self.name, e), traceback
else:
raise