Skip to content

Commit a35f40e

Browse files
committed
[commands.py] removed unused variables in try/except blocks
1 parent 203024e commit a35f40e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fontline/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def get_font_report(fontpath):
2121
os2_typo_linegap = tt['OS/2'].sTypoLineGap
2222
try:
2323
os2_x_height = tt['OS/2'].sxHeight
24-
except AttributeError as e:
24+
except AttributeError:
2525
os2_x_height = "---- (OS/2 table does not contain sxHeight record)"
2626
try:
2727
os2_cap_height = tt['OS/2'].sCapHeight
28-
except AttributeError as e:
28+
except AttributeError:
2929
os2_cap_height = "---- (OS/2 table does not contain sCapHeight record)"
3030
hhea_ascent = tt['hhea'].ascent
3131
hhea_descent = tt['hhea'].descent

0 commit comments

Comments
 (0)