From 50a21fbd74b551ee8160133e57b8fa16f3ed67c0 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Mon, 12 Jul 2021 15:40:31 +0200 Subject: [PATCH] MultiServer: remove message that could never trigger in current protocol --- MultiServer.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/MultiServer.py b/MultiServer.py index afd743ec..fc472703 100644 --- a/MultiServer.py +++ b/MultiServer.py @@ -984,17 +984,13 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict): cmd: str = args["cmd"] except: logging.exception(f"Could not get command from {args}") + await ctx.send_msgs(client, [{"cmd": "InvalidCmd", "text": f"Could not get command from {args} at `cmd`"}]) raise if type(cmd) is not str: await ctx.send_msgs(client, [{"cmd": "InvalidCmd", "text": f"Command should be str, got {type(cmd)}"}]) return - if args is not None and type(args) != dict: - await ctx.send_msgs(client, [{"cmd": "InvalidArguments", - 'text': f'Expected Optional[dict], got {type(args)} for {cmd}'}]) - return - if cmd == 'Connect': if not args or 'password' not in args or type(args['password']) not in [str, type(None)] or \ 'game' not in args: