Skip to content

Commit

Permalink
Suppress useless stack trace when build_wheel backend process fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsmith committed Sep 13, 2023
1 parent 81c2529 commit eefb98d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/pypi/build-wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,10 @@ def build_with_script(self, build_script):
return self.package_wheel(prefix_dir, self.src_dir)

def build_with_pep517(self):
return self.builder.build("wheel", "dist")
try:
return self.builder.build("wheel", "dist")
except build.BuildBackendException as e:
raise CommandError(e)

def update_env(self):
env = {}
Expand Down

0 comments on commit eefb98d

Please sign in to comment.