Skip to content

Commit

Permalink
fix predictions temp dir if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Oct 11, 2023
1 parent 012192a commit 73bfdcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 73bfdcd

Please sign in to comment.