diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-04-06 08:53:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-06 08:53:06 +0200 |
| commit | 11e0676abad335df335de480d767d906b94a46aa (patch) | |
| tree | d95ff612c620134a0390089a64d96dce137b5cc0 /lib | |
| parent | d252f5f109aeb785b4f35d1ac823fd1d4e12496d (diff) | |
do not try to read hidden directories (#3632)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/lettering/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lettering/utils.py b/lib/lettering/utils.py index f643dfa7..695f9d08 100644 --- a/lib/lettering/utils.py +++ b/lib/lettering/utils.py @@ -48,6 +48,8 @@ def get_font_by_id(font_id): except OSError: continue for font_dir in font_dirs: + if not os.path.isdir(os.path.join(font_path, font_dir)) or font_dir.startswith('.'): + continue font = Font(os.path.join(font_path, font_dir)) if font.id == font_id: return font |
