normalized-log-fix3

This commit is contained in:
Untone 2024-09-28 10:31:48 +03:00
parent 366a8b5d1b
commit 02dba0738c

View File

@ -47,6 +47,7 @@ async def download_file(file_id):
async with aiofiles.tempfile.NamedTemporaryFile(delete=True) as temp_file:
await temp_file.write(await response.read())
await temp_file.flush()
logger.error(f"download file: {temp_file.name }")
yield temp_file.name # Yield the path of the temporary file
else:
logger.error(f"Failed to download file: {response.status}")