Skip to content

Commit

Permalink
don't fail if export does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Trolldemorted committed Nov 16, 2023
1 parent 94c87bd commit fa0f58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configgen/configgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def prepare_directories(teams: int) -> None:
Path(f"{DATA_DIR}/passwords/").mkdir(parents=True, exist_ok=True)
Path(f"{DATA_DIR}/wg_game/").mkdir(parents=True, exist_ok=True)
Path(f"{DATA_DIR}/wg_internal/").mkdir(parents=True, exist_ok=True)
shutil.rmtree(DATA_DIR / "export")
shutil.rmtree(DATA_DIR / "export", ignore_errors=True)
Path(f"{DATA_DIR}/export/ansible/checkers").mkdir(parents=True, exist_ok=True)
Path(f"{DATA_DIR}/export/ansible/routers").mkdir(parents=True, exist_ok=True)
for team in range(1, teams + 1):
Expand Down

0 comments on commit fa0f58e

Please sign in to comment.