8000 FIX: catch ValueError as well · matplotlib/matplotlib@6828691 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6828691

Browse files
committed
FIX: catch ValueError as well
Closes #6702 Extension of #5233
1 parent 4836a24 commit 6828691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/font_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ def createFontList(fontfiles, fontext='ttf'):
596596
continue
597597
try:
598598
prop = ttfFontProperty(font)
599-
except (KeyError, RuntimeError):
599+
except (KeyError, RuntimeError, ValueError):
600600
continue
601601

602602
fontlist.append(prop)

0 commit comments

Comments
 (0)
0