Skip to content

Commit

Permalink
Adjust to .process() protocol change
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Apr 3, 2024
1 parent f856cfc commit f51c238
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/fontra_compile/compile_fontmake_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion src/fontra_compile/compile_varc_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f51c238

Please sign in to comment.