Race condition when creating config file directory
ryanrichholt opened this issue · 2 comments
ryanrichholt commented
Lines 647 to 649 in 3162e50
The lines referenced above throw an exception in rare cases when multiple concurrent instances of this code run on a new system. It could be fixed really easy by just adding the exist_ok=True
argument.
sampsyo commented
Ah, good call! In fact, we should probably not have the if
at all and just use exist_ok=True
. Any chance you could open a tiny PR with that change?
ryanrichholt commented
It took a little trial-and-error. The easy solution didn't work for Python 2, but I think I have a solution ready in the PR now. Thanks!