smacademic / project-bdf

project-bdf created by GitHub Classroom
2 stars 0 forks source link

Add exception handling for network issues #58

Closed baconbm closed 5 years ago

baconbm commented 5 years ago

If the server/computer hosting the bot gets disconnected from the internet, the bot will attempt to reconnect every 30 seconds until it detects an internet connection where it will resume normal activity. This PR imports several modules from libraries that were throwing exceptions due to the network issues. Closes #45.

baconbm commented 5 years ago

If possible, try to run these changes on your local machines. I want to make sure that it works for several different environments not just mine.

To test you can go by the guidelines outlined in issue #45. I tested this both by starting the bot when I did not have a network connection and alternatively tested it by starting the bot with a network connection and then disconnecting from the internet while it was running.

If it breaks please note the exceptions thrown that are not already being handled and I can incorporate those exceptions.