diff options
author | Harmen Stoppels <me@harmenstoppels.nl> | 2024-10-18 16:54:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-18 14:54:21 +0000 |
commit | c6bfe7c6bd3f0f963366eaa606c948c8dd48173b (patch) | |
tree | 37d71acde2aa273674b8a1deabc43eab23ca191d /lib | |
parent | 4432f5a1fea50de8ba565d15eab788a860d64a99 (diff) | |
download | spack-c6bfe7c6bd3f0f963366eaa606c948c8dd48173b.tar.gz spack-c6bfe7c6bd3f0f963366eaa606c948c8dd48173b.tar.bz2 spack-c6bfe7c6bd3f0f963366eaa606c948c8dd48173b.tar.xz spack-c6bfe7c6bd3f0f963366eaa606c948c8dd48173b.zip |
fix use of traceback.format_exception (#47080)
Co-authored-by: Peter Scheibel <scheibel1@llnl.gov>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
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. |