Commit fb67992
fix(sources): skip non-regular files in scan_compiled_extensions
pathlib.Path.walk() lists symlinks to directories as filenames rather
than dirnames. This causes scan_compiled_extensions to attempt to
open() them, resulting in IsADirectoryError. Add an is_file() check
to skip non-regular files before attempting to read their contents.
Closes: #1001
Closes: #1004
Co-Authored-By: Mike DePaulo <mikedep333@redhat.com>
Co-Authored-By: Claude Opus 4.6 <claude@anthropic.com>
Signed-off-by: pmattsso <pmattsso@redhat.com>1 parent aec9c9c commit fb67992
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
868 | 872 | | |
869 | 873 | | |
870 | 874 | | |
| |||
0 commit comments