Skip to content

Commit

Permalink
fix: return type of get_party_details (#43131)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1bb2745)
  • Loading branch information
barredterra authored and mergify[bot] committed Sep 9, 2024
1 parent a5a0c0c commit b3b8a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/party.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_party_details(
pos_profile=None,
):
if not party:
return {}
return frappe._dict()
if not frappe.db.exists(party_type, party):
frappe.throw(_("{0}: {1} does not exists").format(party_type, party))
return _get_party_details(
Expand Down

0 comments on commit b3b8a67

Please sign in to comment.