From dbf3d2745c3758490f31199e31b098945ea81fca Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Wed, 11 Mar 2020 09:53:06 -0400 Subject: Do not error in race condition of directory existing --- git/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/util.py') diff --git a/git/util.py b/git/util.py index d5939a6f..ef4db04c 100644 --- a/git/util.py +++ b/git/util.py @@ -174,7 +174,7 @@ def assure_directory_exists(path, is_file=False): path = osp.dirname(path) # END handle file if not osp.isdir(path): - os.makedirs(path) + os.makedirs(path, exist_ok=True) return True return False -- cgit v1.2.1