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

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