Fix result file reading

This commit is contained in:
2022-05-31 16:48:27 +03:00
parent 8c59038d49
commit c6f0e5b222

View File

@@ -275,7 +275,7 @@ class FLDownloader(BaseDownloader):
async def _content_iterator() -> AsyncIterator[bytes]:
try:
async with aiofiles.open(content_filename) as temp_file:
async with aiofiles.open(content_filename, "rb") as temp_file:
while chunk := await temp_file.read(2048):
yield cast(bytes, chunk)
finally: