ttFont: raise KeyError from getGlyphID instead of returning None
Fixes #3030
This commit is contained in:
parent
d77c8901c8
commit
b137fd9616
@ -660,6 +660,7 @@ class TTFont(object):
|
|||||||
return int(glyphName[5:])
|
return int(glyphName[5:])
|
||||||
except (NameError, ValueError):
|
except (NameError, ValueError):
|
||||||
raise KeyError(glyphName)
|
raise KeyError(glyphName)
|
||||||
|
raise
|
||||||
|
|
||||||
def getGlyphIDMany(self, lst):
|
def getGlyphIDMany(self, lst):
|
||||||
"""Converts a list of glyph names into a list of glyph IDs."""
|
"""Converts a list of glyph names into a list of glyph IDs."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user