Skip to content

Commit f0e2618

Browse files
committed
Skip build-finished when an exception is pending
1 parent d7058ea commit f0e2618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sphinx_codeautolink/extension/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def doctree_resolved(self, app, doctree, docname):
8080

8181
def build_finished(self, app, exception):
8282
"""Apply links to HTML output and write refs file."""
83-
if self.do_nothing:
83+
if self.do_nothing or exception is not None:
8484
return
8585

8686
uri = app.builder.outdir

0 commit comments

Comments
 (0)