Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
tjwald committed Jan 22, 2025
1 parent 33c362d commit abfd997
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions checkov/common/parallelizer/parallel_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,15 @@ def func_wrapper(original_func: Callable[[Any], _T], items_group: List[Any], con
result = original_func(*item)
else:
result = original_func(item)

connection.send(result)
except Exception as e:
logging.error(
f"Failed to invoke function {func.__code__.co_filename.replace('.py', '')}.{func.__name__} with {item}",
exc_info=True,
)
result = ParallelRunException(e)
connection.send(ParallelRunException(e))

connection.send(result)
connection.close()

logging.debug(
Expand Down

0 comments on commit abfd997

Please sign in to comment.