Added except to bot.run to catch errors at closing

doc_update
Joey Hines 2018-08-10 18:06:42 -05:00
parent dac4516285
commit 5cb68fc208
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ if __name__ == '__main__':
bot.run(bot_config.token) bot.run(bot_config.token)
except TimeoutError: except TimeoutError:
print("Disconnected, is Discord offline?") print("Disconnected, is Discord offline?")
except:
print("Bye")