mirror of
https://github.com/gumyr/build123d.git
synced 2026-04-06 13:30:58 -07:00
Fix bare except clause in text.py
Replace bare `except:` with `except Exception:` to avoid catching system-exiting exceptions like KeyboardInterrupt and SystemExit. This follows PEP 8 best practices which recommend against bare except clauses as they can mask unexpected errors and make debugging more difficult. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8c06e75004
commit
d11bc53050
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ class FontManager:
|
|||
for record in ft_font["name"].names:
|
||||
try:
|
||||
value = record.toUnicode()
|
||||
except:
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
if record.nameID == 1 and family == "":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue