BatchPersonalization: exception handling tweak
Change-Id: I6ad6cec57e9e94b40ca47a33eed1b49a2cb602d7
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user