Blame SOURCES/FIX-catch-ValueError-as-well.patch

6ae730
From 0854a2eaa44b16e2261e9cb7c0f39a2fb82160ab Mon Sep 17 00:00:00 2001
6ae730
From: Thomas A Caswell <tcaswell@gmail.com>
6ae730
Date: Sat, 9 Jul 2016 14:46:39 -0400
6ae730
Subject: [PATCH 4/5] FIX: catch ValueError as well
6ae730
6ae730
Closes #6702
6ae730
6ae730
Extension of #5233
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 8ee5cdc3fe80..168fa9f306e9 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, RuntimeError):
6ae730
+            except (KeyError, RuntimeError, ValueError):
6ae730
                 continue
6ae730
 
6ae730
         fontlist.append(prop)
6ae730
-- 
6ae730
2.20.1
6ae730