Commit 9900a90
Previously, an allocation failure when creating
the lock for a channel in `_interpchannels` would trigger an assert.
Caused by `handle_channel_error` being passed an error code of -1
which is only allowed if an exception has been set.
(in this case, no exception was set)
`channelsmod_create` now forwards the error code from `channel_create`
which `handle_channel_error` already handled.
(cherry picked from commit b383aa6)
Co-authored-by: Steve Stagg <stestagg@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent a4601d0 commit 9900a90
2 files changed
Lines changed: 6 additions & 7 deletions
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Modules
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | 412 | | |
417 | 413 | | |
418 | 414 | | |
| |||
1726 | 1722 | | |
1727 | 1723 | | |
1728 | 1724 | | |
1729 | | - | |
| 1725 | + | |
| 1726 | + | |
1730 | 1727 | | |
1731 | 1728 | | |
1732 | 1729 | | |
| |||
2906 | 2903 | | |
2907 | 2904 | | |
2908 | 2905 | | |
2909 | | - | |
| 2906 | + | |
2910 | 2907 | | |
2911 | 2908 | | |
2912 | 2909 | | |
| |||
0 commit comments