mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-20 19:19:41 +03:00
Forgot to also catch KeyError
This commit is contained in:
parent
02ef3c6dc8
commit
dea60cdaf0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user