Skip to content

Commit

Permalink
feat(E Invoice Import): use lax parsing mode
Browse files Browse the repository at this point in the history
(cherry picked from commit 1a7571a)
  • Loading branch information
barredterra committed Jan 24, 2025
1 parent 28a26df commit 378ea94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def get_xml_bytes(self) -> bytes:
def read_values_from_einvoice(self) -> None:
xml_bytes = self.get_xml_bytes()
try:
doc = DrafthorseDocument.parse(xml_bytes)
doc = DrafthorseDocument.parse(xml_bytes, strict=False)
except XMLSyntaxError:
frappe.throw(_("The uploaded file does not contain valid XML data."))

Expand Down

0 comments on commit 378ea94

Please sign in to comment.