BatchPersonalization: exception handling tweak

Change-Id: I6ad6cec57e9e94b40ca47a33eed1b49a2cb602d7
This commit is contained in:
Neels Hofmeyr
2026-01-14 01:58:17 +01:00
parent d16d8c61c4
commit 3677e0432e

View File

@@ -1215,11 +1215,7 @@ class BatchPersonalization:
assert input_value is not None
value = p.param.__class__.validate_val(input_value)
p.param.__class__.apply_val(pes, value)
except (
TypeError,
ValueError,
KeyError,
) as e:
except Exception as e:
raise ValueError(f'{p.param.name} fed by {p.src.name}: {e}'
f' (input_value={p.param.input_value!r} value={p.param.value!r})') from e