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

Skip to content

Commit a3f5371

Browse files
committed
Merge pull request #5779 from jenshnielsen/svgcatchruntimeerror15x
FIX: Also catch RuntimeErrors
2 parents 016ef98 + 3be205b commit a3f5371

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)