From 3be205bafb9fef01cc9c9545b7950c86f4c40b76 Mon Sep 17 00:00:00 2001 From: Jens Hedegaard Nielsen Date: Thu, 31 Dec 2015 15:43:18 +0000 Subject: [PATCH] Also catch RuntimeErrors Borrowed from #5677 which is not backported to 2.x --- lib/matplotlib/textpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/textpath.py b/lib/matplotlib/textpath.py index dc5183b4742f..9da0635e7f23 100644 --- a/lib/matplotlib/textpath.py +++ b/lib/matplotlib/textpath.py @@ -344,7 +344,7 @@ def get_glyphs_tex(self, prop, s, glyph_map=None, 1094995778)]: try: font.select_charmap(charmap_code) - except ValueError: + except (ValueError, RuntimeError): pass else: break