Commit eaf016a
fix: scope None guard to only optional status fields (skipped)
The generic None check could silently skip a required field that was
accidentally None. Now only fields in _OPTIONAL_ASYNC_STATUS_FIELDS
(currently just 'skipped') are allowed to be None. Required fields
(running, completed, failed, timeout) raise ValueError if None.
Co-Authored-By: bot_apk <apk@cognition.ai>1 parent e747af9 commit eaf016a
1 file changed
Lines changed: 8 additions & 2 deletions
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3680 | 3680 | | |
3681 | 3681 | | |
3682 | 3682 | | |
| 3683 | + | |
| 3684 | + | |
3683 | 3685 | | |
3684 | 3686 | | |
3685 | 3687 | | |
| |||
3690 | 3692 | | |
3691 | 3693 | | |
3692 | 3694 | | |
3693 | | - | |
3694 | | - | |
| 3695 | + | |
| 3696 | + | |
| 3697 | + | |
| 3698 | + | |
| 3699 | + | |
| 3700 | + | |
3695 | 3701 | | |
3696 | 3702 | | |
3697 | 3703 | | |
| |||
0 commit comments