Trying to fix one last unclosed connection!
This commit is contained in:
parent
20d28e2074
commit
07311d6a4e
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ async def meme(ctx):
|
||||||
URL = 'https://api.imgflip.com/caption_image'
|
URL = 'https://api.imgflip.com/caption_image'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
http_session = aiohttp.ClientSession()
|
#http_session = aiohttp.ClientSession()
|
||||||
async with http_session.post(URL, params=params) as resp:
|
async with http_session.post(URL, params=params) as resp:
|
||||||
response = await resp.json()
|
response = await resp.json()
|
||||||
print(f"Generated Meme = {response['success']}\nImage Link = {response['data']['url']}\nPage Link = {response['data']['page_url']}")
|
print(f"Generated Meme = {response['success']}\nImage Link = {response['data']['url']}\nPage Link = {response['data']['page_url']}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue