From e95089f58b0cff1f90c1ac00d0b01f8b523a5017 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Sat, 4 Apr 2020 11:00:35 -0700 Subject: [PATCH] fontbuild: fix bug where if g.lib did not have com.schriftgestaltung.Glyphs.lastChange the program would crash --- misc/fontbuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/fontbuild b/misc/fontbuild index e3556f3a1..ea9f48f5d 100755 --- a/misc/fontbuild +++ b/misc/fontbuild @@ -270,7 +270,8 @@ class Main(object): # unused stripGlyphs.append(g.name) g.clearAnchors() - del g.lib['com.schriftgestaltung.Glyphs.lastChange'] + if 'com.schriftgestaltung.Glyphs.lastChange' in g.lib: + del g.lib['com.schriftgestaltung.Glyphs.lastChange'] # update possibly modified glyphorder font.lib['public.glyphOrder'] = list(glyphOrder)