🚨 Merged last with-statement
This commit is contained in:
@@ -14,8 +14,7 @@ settings = settings()
|
|||||||
|
|
||||||
|
|
||||||
async def _download_image(url: str) -> bytes:
|
async def _download_image(url: str) -> bytes:
|
||||||
async with ClientSession() as session:
|
async with ClientSession() as session, session.get(url) as resp:
|
||||||
async with session.get(url) as resp:
|
|
||||||
return await resp.read()
|
return await resp.read()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user