Skip to content

Commit

Permalink
fix: throw when no request data found
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninad1306 committed Jan 23, 2025
1 parent 91d7f82 commit 48a4561
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def get_uploaded_invoices(request_id):
)

if not request_data:
return {}
frappe.throw(_("Request data not found"))

if isinstance(request_data, str):
request_data = frappe.parse_json(request_data)
Expand Down

0 comments on commit 48a4561

Please sign in to comment.