Skip to content

Commit

Permalink
Merge pull request #5233 from mdboom/skip-over-broken-font
Browse files Browse the repository at this point in the history
Skip over broken TTF font when creating cache
  • Loading branch information
mdboom authored and tacaswell committed Oct 13, 2015
1 parent f04b6c9 commit 0cb18e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/font_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def createFontList(fontfiles, fontext='ttf'):
continue
try:
prop = ttfFontProperty(font)
except KeyError:
except (KeyError, RuntimeError):
continue

fontlist.append(prop)
Expand Down

0 comments on commit 0cb18e0

Please sign in to comment.