From 198b49aa12e6ca925fb994578a534e016fef66e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Fri, 20 Jul 2018 11:37:37 +0200 Subject: [PATCH] Reset Discord client on exception --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 4ba259e..878b8ec 100644 --- a/bot.py +++ b/bot.py @@ -48,8 +48,8 @@ def main(): twitch_logger.info('Exception', exc_info=e) async def run_discord_client(): - discord_client = DiscordClient(config, discord_logger, commands) while True: + discord_client = DiscordClient(config, discord_logger, commands) try: await discord_client.start_() except Exception as e: