Skip to content

Commit f73dea4

Browse files
committed
one more minor fix
1 parent 346647a commit f73dea4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ocrworker/s3.py

+1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def download_page_txt(page_id: uuid.UUID):
135135
raise ValueError(f"{keyname} not found on S3")
136136

137137
s3_client = get_client()
138+
abs_path.parent.mkdir(parents=True, exist_ok=True)
138139
s3_client.download_file(get_bucket_name(), str(keyname), str(abs_path))
139140

140141

0 commit comments

Comments
 (0)