Replace tabs with spaces in error

because the event log replaces them with question marks
This commit is contained in:
Itai Sadan 2020-01-17 16:26:59 +02:00
parent 825bc9aa47
commit f2c0f598b5

View File

@ -103,7 +103,7 @@ class Command:
except TypeError: except TypeError:
expected = f'Expected: {str(self.signature.parameters)}' expected = f'Expected: {str(self.signature.parameters)}'
received = f'Received: {str(args)}' 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(): for name, value in bound_arguments.arguments.items():
convert_to = self.signature.parameters[name].annotation convert_to = self.signature.parameters[name].annotation