terricain / aioboto3

Wrapper to use boto3 resources with the aiobotocore async backend
Apache License 2.0
743 stars 76 forks source link

Adds missing `await` to S3 download example #336

Closed cuducos closed 4 months ago

cuducos commented 5 months ago

This simple PR just add a missing await to our examples. Without that await for an asyncio read, we end up with:

TypeError: a bytes-like object is required, not 'coroutine'
sys:1: RuntimeWarning: coroutine 'StreamingBody.read' was never awaited
terricain commented 4 months ago

This got merged in v13.0.0

See https://github.com/terricain/aioboto3/commit/8e837e9cacc4c4df448c7d0797fdc315f762ca48