Skip to content

Commit 7ea3428

Browse files
committed
fix(docs/conf.py): Remove missing_ok=True until Python 3.7 deprecated
1 parent 4367487 commit 7ea3428

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,10 @@ def remove_tabs_js(app: "Sphinx", exc: Exception) -> None:
253253
# Fix for sphinx-inline-tabs#18
254254
if app.builder.format == "html" and not exc:
255255
tabs_js = Path(app.builder.outdir) / "_static" / "tabs.js"
256-
tabs_js.unlink(missing_ok=True)
256+
try:
257+
tabs_js.unlink() # When python 3.7 deprecated, use missing_ok=True
258+
except FileNotFoundError:
259+
pass
257260

258261

259262
def setup(app: "Sphinx") -> None:

0 commit comments

Comments
 (0)