summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild/download/docker_downloader.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/build/download/docker_downloader.py b/build/download/docker_downloader.py
index 27dde12f..847bc180 100755
--- a/build/download/docker_downloader.py
+++ b/build/download/docker_downloader.py
@@ -168,8 +168,7 @@ class DockerDownloader(ConcurrentDownloader):
:param image_name: name of the image from list
"""
dst = '{}/{}'.format(output_dir, self._image_filename(image_name))
- if not os.path.exists(output_dir):
- os.makedirs(output_dir)
+ os.makedirs(output_dir, exist_ok=True)
try:
with open(dst, 'wb') as f:
for chunk in image.save(named=self.image_registry_name(image_name)):