Await aio_session close
This commit is contained in:
parent
9fba3f1a76
commit
b598118bba
2
bot.py
2
bot.py
@ -79,7 +79,7 @@ class Submitter(commands.Bot):
|
|||||||
|
|
||||||
async def close(self):
|
async def close(self):
|
||||||
await super().close()
|
await super().close()
|
||||||
self.aio_session.close() # aiohttp is drunk and can't decide if it's a coro or not
|
await self.aio_session.close()
|
||||||
|
|
||||||
|
|
||||||
bot = Submitter(description=description, case_insensitive=True)
|
bot = Submitter(description=description, case_insensitive=True)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user