Skip to content

Commit

Permalink
Merge pull request hotosm#173 from hotosm/hotfix/prediction_temp_dir
Browse files Browse the repository at this point in the history
Fix : Prediction Error when temp dir isn't present on machine
  • Loading branch information
kshitijrajsharma authored Oct 19, 2023
2 parents c03a9f6 + f08f23d commit 62bb7f7
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 62bb7f7

Please sign in to comment.