fix: unhelpful error message (#19666)

This commit is contained in:
Richard Case 2023-01-23 09:17:36 +00:00 committed by Ankush Menat
parent 65a76cc0f3
commit 0e6e2609b5

View file

@ -62,7 +62,10 @@ def get_decrypted_password(doctype, name, fieldname="password", raise_exception=
return decrypt(result[0][0])
elif raise_exception:
frappe.throw(_("Password not found"), frappe.AuthenticationError)
frappe.throw(
_("Password not found for {0} {1} {2}").format(doctype, name, fieldname),
frappe.AuthenticationError,
)
def set_encrypted_password(doctype, name, pwd, fieldname="password"):