Skip to content

Commit

Permalink
Avoid error deleting non-existent directory
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmundGoodman committed Feb 25, 2024
1 parent fd2a141 commit fa66438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hpc_multibench/test_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def record(self, args: Namespace) -> None:
print(f"Recording data from test bench '{self.name}'")

# Optionally clobber directory
if not args.no_clobber:
if not args.no_clobber and self.output_directory.exists():
rmtree(self.output_directory)

# Realise run configurations from list of instantiations
Expand Down

0 comments on commit fa66438

Please sign in to comment.