diff --git a/awscliv2/api.py b/awscliv2/api.py index 49005c9..9d69dd7 100644 --- a/awscliv2/api.py +++ b/awscliv2/api.py @@ -90,7 +90,9 @@ def execute(self, args: Sequence[str]) -> str: return_code = self.run_awscli_v2(args) if return_code: self.output.seek(0) - raise AWSCLIError(f"Command {shlex.join(args)} failed with code {return_code}: {self.output.read()}") + raise AWSCLIError( + f"Command {shlex.join(args)} failed with code {return_code}: {self.output.read()}" + ) self.output.seek(0) result = self.output.read() self.output = old_output