Skip to content

Commit

Permalink
Move String Strip Outside Try/Except
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Andrews authored and radoering committed May 5, 2024
1 parent 1c1398f commit 0a61b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poetry/core/masonry/builders/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ def _get_build_platlib_dir(self) -> Path:
text=True,
encoding="utf-8",
)
plat_specifier = output.strip()
except subprocess.CalledProcessError as e:
raise RuntimeError(
"Failed to get build_platlib_dir for python interpreter"
f" '{self.executable.as_posix()}':\n{e.output}"
)
plat_specifier = output.strip()
else:
plat_specifier = "-".join(
(sysconfig.get_platform(), sys.implementation.cache_tag)
Expand Down

0 comments on commit 0a61b69

Please sign in to comment.