Skip to content

Commit

Permalink
fix(india): error while parsing e-invoice (frappe#31053)
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib authored May 18, 2022
1 parent 65d55ea commit 9fb7b49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion erpnext/regional/india/e_invoice/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,8 @@ def make_einvoice(invoice):
try:
einvoice = safe_json_load(einvoice)
einvoice = santize_einvoice_fields(einvoice)
except json.JSONDecodeError:
raise
except Exception:
show_link_to_error_log(invoice, einvoice)

Expand Down Expand Up @@ -765,7 +767,9 @@ def safe_json_load(json_string):
frappe.throw(
_(
"Error in input data. Please check for any special characters near following input: <br> {}"
).format(snippet)
).format(snippet),
title=_("Invalid JSON"),
exc=e,
)


Expand Down

0 comments on commit 9fb7b49

Please sign in to comment.