fix use of traceback.format_exception (#47080)

Co-authored-by: Peter Scheibel <scheibel1@llnl.gov>
This commit is contained in:
Harmen Stoppels 2024-10-18 16:54:21 +02:00 committed by GitHub
parent 4432f5a1fe
commit c6bfe7c6bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.