griffe icon indicating copy to clipboard operation
griffe copied to clipboard

fix: Ignore .pth files that are not utf-8 encoded, for example PyTorch files

Open qthequartermasterman opened this issue 7 months ago • 1 comments

Fixes #300.

This PR changes how .pth files are handled. Instead of raising an error for non UTF-8 encoded .pth files, they should just be skipped. This is a convenient way to filter out .pth files generated by PyTorch, and which are not path configuration files.

qthequartermasterman avatar Jul 03 '24 00:07 qthequartermasterman