🚨 Merged last with-statement

This commit is contained in:
Mawoka
2022-04-16 11:57:02 +02:00
parent bd23036414
commit 419f2a9906
+1 -2
View File
@@ -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()