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

Skip to content

Commit 16698e8

Browse files
committed
Also catch RuntimeErrors
Borrowed from #5677 which is not backported to 2.x
1 parent 5c5a37d commit 16698e8

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
@@ -345,7 +345,7 @@ def get_glyphs_tex(self, prop, s, glyph_map=None,
345345
1094995778)]:
346346
try:
347347
font.select_charmap(charmap_code)
348-
except ValueError:
348+
except (ValueError, RuntimeError):
349349
pass
350350
else:
351351
break

0 commit comments

Comments
 (0)