Skip to content

Commit c5120b0

Browse files
authored
Reset BytesIO buffer to 0 position
2 parents f2bfeaf + a6bbd24 commit c5120b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

textractor/utils/s3_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def download_from_s3(client, s3_path: str, **extra_args):
3636

3737
f = BytesIO()
3838
client.download_fileobj(bucket, prefix, f)
39+
f.seek(0)
3940
return f
4041

4142

0 commit comments

Comments
 (0)