From 73bfdcd7324de7b3ab60e5da541d0cea7e661a90 Mon Sep 17 00:00:00 2001 From: kshtiijrajsharma Date: Wed, 11 Oct 2023 14:13:57 +0545 Subject: [PATCH] fix predictions temp dir if not exists --- 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 8a4a6201..acbfc210 100644 --- a/backend/core/views.py +++ b/backend/core/views.py @@ -539,7 +539,7 @@ def post(self, request, *args, **kwargs): zoom_level = deserialized_data["zoom_level"] temp_path = f"temp/{uuid.uuid4()}/" - os.mkdir(temp_path) + os.makedirs(temp_path,exist_ok=True) try: download_image_path = download( bbox,