From c6bfe7c6bd3f0f963366eaa606c948c8dd48173b Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Fri, 18 Oct 2024 16:54:21 +0200 Subject: fix use of traceback.format_exception (#47080) Co-authored-by: Peter Scheibel --- lib/spack/spack/build_environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index af6d0f4e76..3737caf35e 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -1204,7 +1204,7 @@ def _setup_pkg_and_run( # objects can't be sent to the parent. exc_type = type(e) tb = e.__traceback__ - tb_string = traceback.format_exception(exc_type, e, tb) + tb_string = "".join(traceback.format_exception(exc_type, e, tb)) # build up some context from the offending package so we can # show that, too. -- cgit v1.2.3-70-g09d2