From f51c238eca844e2e4385cf48615afdfcc230bac2 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Wed, 3 Apr 2024 21:21:14 +0200 Subject: [PATCH] Adjust to .process() protocol change --- src/fontra_compile/compile_fontmake_action.py | 6 ++++-- src/fontra_compile/compile_varc_action.py | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/fontra_compile/compile_fontmake_action.py b/src/fontra_compile/compile_fontmake_action.py index 4640022..7c813c0 100644 --- a/src/fontra_compile/compile_fontmake_action.py +++ b/src/fontra_compile/compile_fontmake_action.py @@ -29,7 +29,9 @@ async def connect( finally: self.input = None - async def process(self, outputDir: os.PathLike = pathlib.Path()) -> None: + async def process( + self, outputDir: os.PathLike = pathlib.Path(), *, continueOnError=False + ) -> None: assert self.input is not None outputDir = pathlib.Path(outputDir) outputFontPath = outputDir / self.destination @@ -42,7 +44,7 @@ async def process(self, outputDir: os.PathLike = pathlib.Path()) -> None: dsBackend = newFileSystemBackend(designspacePath) async with aclosing(dsBackend): - await copyFont(self.input, dsBackend) + await copyFont(self.input, dsBackend, continueOnError=continueOnError) command = [ "fontmake", diff --git a/src/fontra_compile/compile_varc_action.py b/src/fontra_compile/compile_varc_action.py index 8ebbb20..d018f37 100644 --- a/src/fontra_compile/compile_varc_action.py +++ b/src/fontra_compile/compile_varc_action.py @@ -26,7 +26,9 @@ async def connect( finally: self.input = None - async def process(self, outputDir: os.PathLike = pathlib.Path()) -> None: + async def process( + self, outputDir: os.PathLike = pathlib.Path(), *, continueOnError=False + ) -> None: outputDir = pathlib.Path(outputDir) outputFontPath = outputDir / self.destination builder = Builder(self.input)