From e72257472808626062d58a0a331da005cd3fa720 Mon Sep 17 00:00:00 2001 From: twald Date: Wed, 22 Jan 2025 16:09:10 +0200 Subject: [PATCH] try to keep traceback --- checkov/common/parallelizer/parallel_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkov/common/parallelizer/parallel_runner.py b/checkov/common/parallelizer/parallel_runner.py index eddd85b7791..60237d87335 100644 --- a/checkov/common/parallelizer/parallel_runner.py +++ b/checkov/common/parallelizer/parallel_runner.py @@ -107,7 +107,7 @@ def func_wrapper(original_func: Callable[[Any], _T], items_group: List[Any], con v = parent_conn.recv() if isinstance(v, ParallelRunException): - raise v.internal_exception + raise v.internal_exception.with_traceback(v.internal_exception.__traceback__) yield v except EOFError: