mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +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,
|
size_in_pts=size_in_pts,
|
||||||
dpi=dpi
|
dpi=dpi
|
||||||
)
|
)
|
||||||
except subprocess.CalledProcessError as err:
|
except (KeyError, subprocess.CalledProcessError) as err:
|
||||||
raise FontNotFound(
|
raise FontNotFound(
|
||||||
'Failed to find font for character U+{:X}, error from fontconfig: {}'.
|
'Failed to find font for character U+{:X}, error from fontconfig: {}'.
|
||||||
format(ord(char[0]), err)
|
format(ord(char[0]), err)
|
||||||
|
|||||||
Reference in New Issue
Block a user