telepot icon indicating copy to clipboard operation
telepot copied to clipboard

Coroutine 'ClientSession.close' was never awaited

Open rossnomann opened this issue 6 years ago • 2 comments

Looks like there is a bug:

/usr/local/lib/python3.6/site-packages/telepot/aio/api.py:41: RuntimeWarning: coroutine 'ClientSession.close' was never awaited

https://github.com/nickoala/telepot/blob/master/telepot/aio/api.py#L41

rossnomann avatar Mar 06 '18 21:03 rossnomann

Oops. Will fix it in next release.

nickoala avatar Mar 07 '18 03:03 nickoala

Just realized, aiohttp.ClientSession.close() has only become a coroutine a few months ago. I will also need to fix the aiohttp dependency.

nickoala avatar Mar 07 '18 03:03 nickoala