From f2c0f598b5224f8e3fbe94dc5817ab861b0a8438 Mon Sep 17 00:00:00 2001 From: Itai Sadan Date: Fri, 17 Jan 2020 16:26:59 +0200 Subject: [PATCH] Replace tabs with spaces in error because the event log replaces them with question marks --- mitmproxy/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/command.py b/mitmproxy/command.py index 48f9051e2..341a1401b 100644 --- a/mitmproxy/command.py +++ b/mitmproxy/command.py @@ -103,7 +103,7 @@ class Command: except TypeError: expected = f'Expected: {str(self.signature.parameters)}' received = f'Received: {str(args)}' - raise exceptions.CommandError(f"Command argument mismatch: \n\t{expected}\n\t{received}") + raise exceptions.CommandError(f"Command argument mismatch: \n {expected}\n {received}") for name, value in bound_arguments.arguments.items(): convert_to = self.signature.parameters[name].annotation