Compare commits

...

4 Commits

Author SHA1 Message Date
Nicholas Tindle
2110e252ff Merge branch 'dev' into seer/xml-parsing-error-handling 2025-12-26 10:05:30 -06:00
claude[bot]
5b31b74b18 fix(backend): use gravitasml 0.1.4 from PyPI directly
Co-authored-by: Nicholas Tindle <ntindle@users.noreply.github.com>
2025-12-26 16:02:40 +00:00
Cursor Agent
267ea4d446 fix(backend): update gravitasml parser dependency
Pin the backend to gravitasml tag 0.1.4 so the XML parser fix
from Significant-Gravitas/gravitasml#15 ships with this PR.
2025-12-18 17:59:29 +00:00
seer-by-sentry[bot]
42904c6a41 feat(blocks): Improve XML parsing error handling with specific AttributeError message 2025-10-18 07:42:41 +00:00
3 changed files with 10 additions and 4 deletions

View File

@@ -39,6 +39,12 @@ class XMLParserBlock(Block):
parser = Parser(tokens)
parsed_result = parser.parse()
yield "parsed_xml", parsed_result
except AttributeError as attr_e:
raise ValueError(
f"XML parsing error: The gravitasml library encountered an incompatible structure. "
f"This may occur with certain XML formats that create List objects with text content. "
f"Details: {attr_e}"
) from attr_e
except ValueError as val_e:
raise ValueError(f"Validation error for dict:{val_e}") from val_e
except SyntaxError as syn_e:

View File

@@ -1908,14 +1908,14 @@ pyjwt = ">=2.10.1,<3.0.0"
[[package]]
name = "gravitasml"
version = "0.1.3"
version = "0.1.4"
description = ""
optional = false
python-versions = "<4.0,>=3.10"
groups = ["main"]
files = [
{file = "gravitasml-0.1.3-py3-none-any.whl", hash = "sha256:51ff98b4564b7a61f7796f18d5f2558b919d30b3722579296089645b7bc18b85"},
{file = "gravitasml-0.1.3.tar.gz", hash = "sha256:04d240b9fa35878252d57a36032130b6516487468847fcdced1022c032a20f57"},
{file = "gravitasml-0.1.4-py3-none-any.whl", hash = "sha256:671a18b11d3d8a0e270c6a80c72cd058458b18d5ef7560d00010e962ab1bca74"},
{file = "gravitasml-0.1.4.tar.gz", hash = "sha256:35d0d9fec7431817482d53d9c976e375557c3e041d1eb6928e809324a8c866e3"},
]
[package.dependencies]

View File

@@ -27,7 +27,7 @@ google-api-python-client = "^2.177.0"
google-auth-oauthlib = "^1.2.2"
google-cloud-storage = "^3.2.0"
googlemaps = "^4.10.0"
gravitasml = "^0.1.3"
gravitasml = "^0.1.4"
groq = "^0.30.0"
html2text = "^2024.2.26"
jinja2 = "^3.1.6"