Skip to content

Commit

Permalink
fix: return type of get_party_details (backport #43131) (#43134)
Browse files Browse the repository at this point in the history
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
fix: return type of `get_party_details` (#43131)
  • Loading branch information
mergify[bot] and barredterra committed Sep 9, 2024
1 parent 5110975 commit d2923ba
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 d2923ba

Please sign in to comment.