Skip to content

Commit

Permalink
post gh report then raise exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rc1e committed Dec 14, 2023
1 parent f09d250 commit ffaf8e5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Lib/gftools/qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ def fontbakery(self, profile="googlefonts", html=False, extra_args=None):
if extra_args:
cmd.extend(extra_args)
process = subprocess.run(cmd)
if process.returncode != 0:
logger.fatal("Fontbakery has raised a fatal error. Please fix!")
sys.exit(1)

fontbakery_report = os.path.join(self.out, "Fontbakery", "report.md")
if not os.path.isfile(fontbakery_report):
Expand All @@ -136,6 +133,10 @@ def fontbakery(self, profile="googlefonts", html=False, extra_args=None):
msg = doc.read()
self.post_to_github(msg)

if process.returncode != 0:
logger.fatal("Fontbakery has raised a fatal error. Please fix!")
sys.exit(1)

def googlefonts_upgrade(self, imgs=False):
self.fontbakery()
self.diffenator()
Expand Down

0 comments on commit ffaf8e5

Please # to comment.