Skip to content

Commit

Permalink
Reset BytesIO buffer to 0 position
Browse files Browse the repository at this point in the history
  • Loading branch information
Belval authored Feb 26, 2024
2 parents f2bfeaf + a6bbd24 commit c5120b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions textractor/utils/s3_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def download_from_s3(client, s3_path: str, **extra_args):

f = BytesIO()
client.download_fileobj(bucket, prefix, f)
f.seek(0)
return f


Expand Down

0 comments on commit c5120b0

Please sign in to comment.