socphoenix / lemmy_nhl_bot

nhl linescore grabber/poster for lemmy
Apache License 2.0
2 stars 0 forks source link

add try/timeout and wait for slower instances #12

Closed socphoenix closed 1 year ago

socphoenix commented 1 year ago

While testing draft_bot.py, the instance began to slow down a bit. In order to catch this, need to implement a try/timeout followed by a quick wait so the bot doesn't need to be restarted.

socphoenix commented 1 year ago

update: you can add timeout to requests.get(). I've submitted a pull request with timeout enabled here. In the meantime should probably use the timeout branch of my forked repository

socphoenix commented 1 year ago

Added try block, will close but update readme to reflect the need for forked repo at the moment