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

Improve error handling #42

Merged
merged 3 commits into from
Dec 5, 2024
Merged

Improve error handling #42

merged 3 commits into from
Dec 5, 2024

Conversation

fk3
Copy link
Contributor

@fk3 fk3 commented Dec 4, 2024

Driver or other source files could break the error-handling when they contained non UTF-8 characters. An exception was thrown and a traceback was attempted to be printed, which however failed because the traceback was trying to read the invalid character as well, resulting in another exception.

With this PR, the traceback printing is monkey patched to skip reading a file if there was a UnicodeDecodeError beforehand.

@fk3 fk3 requested a review from a team as a code owner December 4, 2024 17:25
@fk3 fk3 merged commit ec24478 into main Dec 5, 2024
3 checks passed
@fk3 fk3 deleted the error-handling branch December 5, 2024 22:30
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.

2 participants