Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document error handling of etree object #933

Open
pvgenuchten opened this issue Jun 20, 2024 · 1 comment
Open

document error handling of etree object #933

pvgenuchten opened this issue Jun 20, 2024 · 1 comment
Labels

Comments

@pvgenuchten
Copy link
Contributor

I was wondering how to retrieve error message from a failed iso19139 parsing

in geohealthcheck i noticed this code

def perform(self):
        try:
            etree.fromstring(
                self.probe.response.content,
                parser=etree.XMLParser(huge_tree=CONFIG['GHC_LARGE_XML']))
        except Exception:
            self.set_result(False, str(sys.exc_info()))

is this the acurate way to retrieve the error message of a failed xml parsing?

If so can we share this approach via documentation?

Copy link

github-actions bot commented Oct 6, 2024

This Issue has been inactive for 90 days. In order to manage maintenance burden, it will be automatically closed in 7 days.

@github-actions github-actions bot added the stale label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant