japherwocky / j4ne

A chat bot with data visualizations for IRC, Twitch, Discord, and Twitter
2 stars 0 forks source link

fix for 'Timeout context manager should be used inside a task' #1

Closed gitten closed 7 years ago

gitten commented 7 years ago

fixed the timeout error following the suggested fix here: https://github.com/KeepSafe/aiohttp/issues/1176

also, switched to a "native coroutine" definition for connect() as described here: http://www.tornadoweb.org/en/stable/guide/coroutines.html?highlight=wait_for#python-3-5-async-and-await