Skip to content

Commit 971f456

Browse files
committed
chore: fixed type
1 parent d174e17 commit 971f456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unstructured_client/_hooks/custom/split_pdf_hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ async def call_api_partial(pdf_chunk: Tuple[BinaryIO, int]):
340340
async for bytes_chunk in response.aiter_bytes():
341341
await temp_file.write(bytes_chunk)
342342
# we save the path in content attribute to be used in after_success
343-
response._content = temp_file.name.encode() # pylint: disable=protected-access
343+
response._content = temp_file_name.encode() # pylint: disable=protected-access
344344

345345
return response
346346

0 commit comments

Comments
 (0)