Skip to content

Commit

Permalink
Fix for folder creation race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
smcolby committed Sep 13, 2023
1 parent d718fb6 commit 8d2f450
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions isicle/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ def gettempdir():

root = os.path.join(tempfile.gettempdir(), 'isicle')

if not os.path.exists(root):
os.makedirs(root)
os.makedirs(root, exist_ok=True)

return root

Expand Down

0 comments on commit 8d2f450

Please sign in to comment.