normalized-log-fix3
This commit is contained in:
parent
366a8b5d1b
commit
02dba0738c
|
@ -47,6 +47,7 @@ async def download_file(file_id):
|
||||||
async with aiofiles.tempfile.NamedTemporaryFile(delete=True) as temp_file:
|
async with aiofiles.tempfile.NamedTemporaryFile(delete=True) as temp_file:
|
||||||
await temp_file.write(await response.read())
|
await temp_file.write(await response.read())
|
||||||
await temp_file.flush()
|
await temp_file.flush()
|
||||||
|
logger.error(f"download file: {temp_file.name }")
|
||||||
yield temp_file.name # Yield the path of the temporary file
|
yield temp_file.name # Yield the path of the temporary file
|
||||||
else:
|
else:
|
||||||
logger.error(f"Failed to download file: {response.status}")
|
logger.error(f"Failed to download file: {response.status}")
|
Loading…
Reference in New Issue
Block a user