From f08f23de21134c1d4fe29a4cf215c867a425bb41 Mon Sep 17 00:00:00 2001 From: kshtiijrajsharma Date: Wed, 11 Oct 2023 14:14:39 +0545 Subject: [PATCH] Fixes if temp dir doesn't exist on the machine --- backend/core/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/core/views.py b/backend/core/views.py index c6321083..ae412c19 100644 --- a/backend/core/views.py +++ b/backend/core/views.py @@ -543,7 +543,7 @@ def post(self, request, *args, **kwargs): bbox, zoom_level, DEFAULT_TILE_SIZE ) temp_path = f"temp/{uuid.uuid4()}/" - os.mkdir(temp_path) + os.makedirs(temp_path,exist_ok=True) try: download_imagery( start,