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

Fix HTMLParser error handling. #87

Merged
merged 3 commits into from
Aug 25, 2024

Conversation

hodgestar
Copy link
Contributor

@hodgestar hodgestar commented Aug 25, 2024

Genshi's HTMLParser referenced Python's html.HTMLParseError exception type in its try except clause. This exception class was deprecated in Python 3.3, removed in Python 3.5, and was not raised except in strict mode which, as far as I can tell from the version history, Genshi never used.

See https://docs.python.org/3.4/library/html.parser.html#html.parser.HTMLParseError.

Fixes #85.

@hodgestar hodgestar merged commit 43496ec into master Aug 25, 2024
20 checks passed
@hodgestar hodgestar deleted the feature/add-test-for-html-parser-error branch August 25, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception handler tries to use nonexistent error class (html.HTMLParseError)
1 participant