diff --git a/distutils/_msvccompiler.py b/distutils/_msvccompiler.py index 03653929..e7652218 100644 --- a/distutils/_msvccompiler.py +++ b/distutils/_msvccompiler.py @@ -159,7 +159,7 @@ def _get_vc_env(plat_spec): stderr=subprocess.STDOUT, ).decode('utf-16le', errors='replace') except subprocess.CalledProcessError as exc: - log.error(exc.output) # noqa: RUF100, TRY400 + log.error(exc.output) raise DistutilsPlatformError(f"Error executing {exc.cmd}") env = { diff --git a/ruff.toml b/ruff.toml index 664d894a..370e9cae 100644 --- a/ruff.toml +++ b/ruff.toml @@ -39,6 +39,7 @@ ignore = [ # local "B028", "B904", + "TRY400", ] [format]