From dea60cdaf0630def4357969c758ddf2f8290e098 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 8 Feb 2017 21:57:39 +0530 Subject: [PATCH] Forgot to also catch KeyError --- kitty/fonts/fontconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/fonts/fontconfig.py b/kitty/fonts/fontconfig.py index 642c0e6a3..83677fd21 100644 --- a/kitty/fonts/fontconfig.py +++ b/kitty/fonts/fontconfig.py @@ -111,7 +111,7 @@ def find_font_for_character( size_in_pts=size_in_pts, dpi=dpi ) - except subprocess.CalledProcessError as err: + except (KeyError, subprocess.CalledProcessError) as err: raise FontNotFound( 'Failed to find font for character U+{:X}, error from fontconfig: {}'. format(ord(char[0]), err)