From 711e337ab96e434825c3ab7afffe8c526b3b819a Mon Sep 17 00:00:00 2001 From: brb Date: Wed, 5 Jul 2023 20:45:05 +0200 Subject: [PATCH] added exist ok to mkdir when cloning repo --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index c02dcfb..9c8fc9d 100644 --- a/utils.py +++ b/utils.py @@ -5,5 +5,5 @@ def clone_repository(repo_url: AnyHttpUrl) -> Path: print(f'cloning into {repo_url}') repo_name = repo_url.split('/')[-1].strip('\.git') dst_dir = Path(__file__).parent / repo_name - dst_dir.mkdir() + dst_dir.mkdir(exist_ok=True) return dst_dir \ No newline at end of file