mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-09 15:08:13 +02:00
Forgot to also catch KeyError
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user