we ok with existing directories

This commit is contained in:
Vostretsov Nikita 2020-02-07 06:48:30 +00:00
parent c4b9c8cd56
commit 6918204359
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def _with_mkdir(queue_class):
def __init__(self, path, *args, **kwargs):
dirname = os.path.dirname(path)
if not os.path.exists(dirname):
os.makedirs(dirname)
os.makedirs(dirname, exist_ok=True)
super(DirectoriesCreated, self).__init__(path, *args, **kwargs)