Skip to content

Commit 5e94551

Browse files
committed
bugfix
1 parent 2c26205 commit 5e94551

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ocrworker/s3.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ async def get_pdf_page(client: AsyncClient, page_id: str) -> bytes:
179179
s3_client = get_client()
180180
key = get_prefix() / plib.page_path(page_id) / const.PAGE_PDF
181181
request_url = s3_client.generate_presigned_url(
182-
"get_object", {"Bucket": get_bucket_name(), "Key": key}, ExpiresIn=30
182+
"get_object",
183+
{"Bucket": get_bucket_name(), "Key": str(key)},
184+
ExpiresIn=30,
183185
)
184186
resp = await client.get(request_url, follow_redirects=True)
185187
return resp.read()

0 commit comments

Comments
 (0)