fixes #2811: exit from bad utf-8 in check_sources by jofish920 · Pull Request #2812 · pygments/pygments

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@jofish920

Copy link

Contributor

@jofish920 jofish920 commented

Nov 13, 2024

edited by Anteru

Loading

Came across a case where running tox -e check resulted in the script "test/check_sources.py" exiting due to an uncaught exception rather than reporting an error in the file being checked. This adds an exception handler almost identical to the one right above it that deals with unopenable files. Still an apparent problem with scanning files in ".venv".

@Anteru Anteru added this to the 2.19.0 milestone

Jan 5, 2025

@Anteru Anteru merged commit fdf8e56 into pygments:master

Jan 5, 2025

@Anteru

Copy link

Collaborator

Anteru commented

Jan 5, 2025

Merged, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

2.19.0

Development

Successfully merging this pull request may close these issues.

2 participants

@jofish920 @Anteru