Forgot to also catch KeyError
This commit is contained in:
parent
02ef3c6dc8
commit
dea60cdaf0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue