Skip to content

Commit

Permalink
Merge pull request #556 from googlefonts/die-noisily
Browse files Browse the repository at this point in the history
Die noisily when variable fonts fail to build
  • Loading branch information
m4rc1e authored May 12, 2022
2 parents b8249ae + da7e592 commit 3b769cc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Lib/gftools/builder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,10 @@ def build_variable(self):
args["output_path"] = os.path.join(
self.config["vfDir"], sourcebase + "-VF.ttf",
)
try:
output_files = self.run_fontmake(source, args)
newname = self.rename_variable(output_files[0])
ttFont = TTFont(newname)
ttFonts.append(ttFont)
except Exception as e:
self.logger.error("Could not build variable font: %s" % e)
output_files = self.run_fontmake(source, args)
newname = self.rename_variable(output_files[0])
ttFont = TTFont(newname)
ttFonts.append(ttFont)

if not ttFonts:
return
Expand Down

0 comments on commit 3b769cc

Please sign in to comment.