Ignoring errors is the default behavior for os.walk
This commit is contained in:
parent
0a01f41996
commit
524fe6ae3b
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
|
@ -932,7 +932,7 @@ def add_builtin_fonts(args: Options) -> None:
|
|||
break
|
||||
else:
|
||||
for candidate in candidates:
|
||||
for root, _, files in os.walk(candidate, onerror=lambda _: None):
|
||||
for root, _, files in os.walk(candidate):
|
||||
if filename in files:
|
||||
font_file = os.path.join(root, filename)
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue