diff --git a/wfl/calculators/generic.py b/wfl/calculators/generic.py index 544b8103..62b8843c 100644 --- a/wfl/calculators/generic.py +++ b/wfl/calculators/generic.py @@ -80,7 +80,7 @@ def _run_autopara_wrappable(atoms, calculator, properties=None, output_prefix='_ raise TypeError("calculators.generic.calculate got WFL_CALCULATOR_INITIALIZER, _ARGS, or _KWARGS " f"but constructor failed, most likely because calculator wasn't a tuple (TypeError) " "or original tuple had invalid element that wasn't overridden by `Atoms.info` entry. " - f"Constructor exception was '{exc}'") + f"Constructor exception was '{exc}'") from exc if calculator_use is None: raise ValueError(f"Failed to construct calculator, original attempt's exception was '{calculator_failure_message}'")