Reset Discord client on exception

master
Nikola Forró 6 years ago
parent 8c0439c707
commit 198b49aa12

@ -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:

Loading…
Cancel
Save