You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Phase 4: Exception Groups Migration (PEP 654) (#4877)
Summary:
Pull Request resolved: #4877
Convert error collection patterns to use Python 3.11 ExceptionGroup instead
of ad-hoc exception aggregation. This provides better structured exception
handling and enables the use of except* syntax in callers.
Files changed:
- ax/core/metric.py: Update _unwrap_experiment_data(), _unwrap_trial_data_multi(),
and _unwrap_experiment_data_multi() to raise ExceptionGroup with all collected
errors instead of chaining to a single exception.
- ax/generation_strategy/generation_node.py: Update new_trial_limit() to collect
all generation-blocking errors and raise as ExceptionGroup.
Reviewed By: saitcakmak
Differential Revision: D91648883
fbshipit-source-id: b9ef2a7912f26e9e6b5c1803a81dca3e008242be
0 commit comments