Skip to content

Commit

Permalink
Avoid supressing exceptions in "build-finished" hook (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored Aug 4, 2021
1 parent a56931b commit 363eebc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/furo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ def _overwrite_pygments_css(
app: sphinx.application.Sphinx,
exception: Optional[Exception],
) -> None:
if exception is not None:
return

assert app.builder
with open(os.path.join(app.builder.outdir, "_static", "pygments.css"), "w") as f:
f.write(get_pygments_stylesheet())
Expand Down

0 comments on commit 363eebc

Please sign in to comment.