Skip to content

Commit

Permalink
Simplify traceback from subprocess (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Aug 30, 2021
1 parent 2612391 commit f07ef6a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions webviz_config/_build_webviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ def build_webviz(args: argparse.Namespace) -> None:
if subprocess.call( # nosec
[sys.executable, "copy_data.py"], cwd=build_directory
):
raise RuntimeError(
"Something went wrong. This is probably "
"not related to the webviz plugin framework, but more "
"likely one of the included plugins in your configuration. "
"See exact error message and traceback above."
)
# We simply exit here with a non-zero status in order to not clutter
# the subprocess traceback with unnecessary information
sys.exit(1)

(build_directory / "copy_data.py").unlink()

Expand Down

0 comments on commit f07ef6a

Please sign in to comment.