Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3be205b

Browse files
committed
Also catch RuntimeErrors
Borrowed from #5677 which is not backported to 2.x
1 parent 016ef98 commit 3be205b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/textpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def get_glyphs_tex(self, prop, s, glyph_map=None,
344344
1094995778)]:
345345
try:
346346
font.select_charmap(charmap_code)
347-
except ValueError:
347+
except (ValueError, RuntimeError):
348348
pass
349349
else:
350350
break

0 commit comments

Comments
 (0)