Skip to content

Decoding error causes abnormal termination in "scripts/check_sources.py" when running "tox -e check" #2811

@jofish920

Description

@jofish920

Running "tox -e check" resulted in an uncaught exception of type UnicodeDecodeError raised by code in main within "scripts/check_sources.py" due to a failure in decoding the contents of one of the files in my ".venv" directory. The code catches exceptions due to the file being missing, but not improperly encoded. Dealing with the two types of exception in the same way would be my preferred solution. A different issue is why the files in ".venv" were being checked in the first place?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions