Skip to content

Commit

Permalink
fix: mkdir -p to ignore OSErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Mar 17, 2022
1 parent 25f49c2 commit d38b63a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bench/utils/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ def migrate_env(python, backup=False):
from datetime import datetime

parch = os.path.join(path, "archived", "envs")
if not os.path.exists(parch):
os.mkdir(parch)
os.makedirs(parch, exist_ok=True)

source = os.path.join(path, "env")
target = parch
Expand Down

0 comments on commit d38b63a

Please sign in to comment.