This commit is contained in:
Adrien Tétar 2017-11-04 22:59:01 +01:00
parent 99c5c4fff5
commit a2ffce8596

View File

@ -249,8 +249,7 @@ class GlyphSet(object):
with open(path, "rb") as f:
text = f.read()
except IOError as e:
# MissingPlistError
if e.errno == 2:
if e.errno == 2: # aka. FileNotFoundError
raise KeyError(glyphName)
raise
self._glifCache[glyphName] = (text, os.path.getmtime(path))