Skip to content

[BUGFIX] Prevent error during XPath evaluation - #338

Merged
beatrycze-volk merged 1 commit into
slub:mainfrom
beatrycze-volk:xpath
Oct 1, 2026
Merged

beatrycze-volk merged 1 commit into
slub:mainfrom
beatrycze-volk:xpath

Conversation

@beatrycze-volk

Copy link
Copy Markdown
Contributor

Wrap XPath evaluations in a try-catch block to prevent errors when an namespace is not registered.
This ensures application stability and logs detailed information about the XPath query and METS document, aiding debugging.

@beatrycze-volk beatrycze-volk self-assigned this Oct 1, 2026
@beatrycze-volk beatrycze-volk added the bug Software errors, unintended behaviors, or faulty functionality that needs a fix label Oct 1, 2026
Wrap XPath evaluations in a try-catch block to prevent
errors when an namespace is not registered.
This ensures application stability and logs detailed information
about the XPath query and METS document, aiding debugging.
@beatrycze-volk
beatrycze-volk merged commit fd1f579 into slub:main Oct 1, 2026
3 checks passed
@beatrycze-volk
beatrycze-volk deleted the xpath branch October 1, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Software errors, unintended behaviors, or faulty functionality that needs a fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants