Blame SOURCES/Skip-over-broken-TTF-font-when-creating-cache.patch

9efa0a
From 484f95e01a836f39ab55daee2663788cb9813c3d Mon Sep 17 00:00:00 2001
9efa0a
From: Michael Droettboom <mdboom@gmail.com>
9efa0a
Date: Mon, 12 Oct 2015 18:51:00 -0400
9efa0a
Subject: [PATCH 2/5] Skip over broken TTF font when creating cache
9efa0a
9efa0a
Signed-off-by: John Kacur <jkacur@redhat.com>
9efa0a
---
9efa0a
 lib/matplotlib/font_manager.py | 2 +-
9efa0a
 1 file changed, 1 insertion(+), 1 deletion(-)
9efa0a
9efa0a
diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py
9efa0a
index f9418dc5b4bd..a57e211509bb 100644
9efa0a
--- a/lib/matplotlib/font_manager.py
9efa0a
+++ b/lib/matplotlib/font_manager.py
9efa0a
@@ -581,7 +581,7 @@ def createFontList(fontfiles, fontext='ttf'):
9efa0a
                 continue
9efa0a
             try:
9efa0a
                 prop = ttfFontProperty(font)
9efa0a
-            except KeyError:
9efa0a
+            except KeyError, RuntimeError:
9efa0a
                 continue
9efa0a
 
9efa0a
         fontlist.append(prop)
9efa0a
-- 
9efa0a
2.20.1
9efa0a