discord-sidebar-price-bot icon indicating copy to clipboard operation
discord-sidebar-price-bot copied to clipboard

Script crashes if API call fails

Open ildan-gh opened this issue 3 years ago • 2 comments

Hey guys @edenau @rafitamolin , thank you for your work.

If either the host doesn't have internet connection for a few seconds or CoinGecko's API doesn't respond, the whole script crashes and needs to be restarted manually. I think it needs some kind of try/except function which restarts the script if a connection fails.

Screenshot_2021-04-19_182909 Screenshot_2021-04-19_182924

ildan-gh avatar Apr 19 '21 16:04 ildan-gh

Can confirm the issue, had to restart the script multiple times before due to this

rafitamolin avatar Apr 19 '21 16:04 rafitamolin

yea can you submit a pull request for this if you have time?

edenau avatar Apr 19 '21 20:04 edenau