Trying to fix one last unclosed connection!

This commit is contained in:
phixxy 2024-01-17 22:57:58 -08:00
parent 20d28e2074
commit 07311d6a4e

View file

@ -83,7 +83,7 @@ async def meme(ctx):
URL = 'https://api.imgflip.com/caption_image'
try:
http_session = aiohttp.ClientSession()
#http_session = aiohttp.ClientSession()
async with http_session.post(URL, params=params) as resp:
response = await resp.json()
print(f"Generated Meme = {response['success']}\nImage Link = {response['data']['url']}\nPage Link = {response['data']['page_url']}")