CommonClient.py: fix generic error

This commit is contained in:
Fabian Dill 2021-06-25 07:25:03 +02:00
parent 0e32393acb
commit 007f66d86e
1 changed files with 3 additions and 2 deletions

View File

@ -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"]