Skip to content

Commit

Permalink
Fixes if temp dir doesn't exist on the machine
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Oct 11, 2023
1 parent 9e44525 commit 6ed4c3c
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 @@ -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,
Expand Down

0 comments on commit 6ed4c3c

Please sign in to comment.