Skip to content

Commit

Permalink
Ignore errors when cleaning generated testmodels (#776)
Browse files Browse the repository at this point in the history
Otherwise it would give an error halfway if you still have a terminal
open.
  • Loading branch information
deltamarnix authored Nov 13, 2023
1 parent ac48bb4 commit 7e87cf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/generate-testmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
if __name__ == "__main__":
datadir = Path("generated_testmodels")
if datadir.is_dir():
shutil.rmtree(datadir)
shutil.rmtree(datadir, ignore_errors=True)

datadir.mkdir()
datadir.mkdir(exist_ok=True)
readme = datadir / "README.md"
readme.write_text(
"""\
Expand Down

0 comments on commit 7e87cf6

Please sign in to comment.