From 007f66d86e2e989c16c0e80e0896b500fe5b74e5 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Fri, 25 Jun 2021 07:25:03 +0200 Subject: [PATCH] CommonClient.py: fix generic error --- CommonClient.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CommonClient.py b/CommonClient.py index a2058688..9610fd33 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -331,9 +331,10 @@ async def process_server_cmd(ctx: CommonContext, args: dict): logger.error('Invalid password') ctx.password = None await ctx.server_auth(True) - else: + elif errors: raise Exception("Unknown connection errors: " + str(errors)) - raise Exception('Connection refused by the multiworld host, no reason provided') + else: + raise Exception('Connection refused by the multiworld host, no reason provided') elif cmd == 'Connected': ctx.team = args["team"]