Skip to content

Commit

Permalink
Attempt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rhelmot committed Jul 14, 2024
1 parent fa9fb4b commit 4e4db15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydatatask/repository/bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ async def close(self):

async def write(self, data: bytes, /) -> int:
"""Write some data to the stream."""
if not data:
return 0
part = await self.client.upload_part(
Bucket=self.mpu["Bucket"],
Key=self.mpu["Key"],
Expand Down

0 comments on commit 4e4db15

Please sign in to comment.