Commit bcf4710
Release Manager
gh-39906: Fix error in exception handling code of gap interface
Previously the (newly-added) test would raise
```
TypeError: argument of type 'RuntimeError' is not iterable
```
instead, because `RuntimeError(exc)` will create an object that is
`RuntimeError(RuntimeError('Gap produced error output...'))` instead,
and later there is a check that is `if "Input/output error" in
msg.args[0]:` which would fail if `msg.args[0]` is not a string.
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes.
- [x] I have updated the documentation and checked the documentation
preview.
### ⌛ Dependencies
<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - #12345: short description why this is a dependency -->
<!-- - #34567: ... -->
URL: #39906
Reported by: user202729
Reviewer(s): Travis Scrimshaw
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
673 | 682 | | |
674 | 683 | | |
675 | 684 | | |
| |||
728 | 737 | | |
729 | 738 | | |
730 | 739 | | |
731 | | - | |
| 740 | + | |
732 | 741 | | |
733 | 742 | | |
734 | 743 | | |
| |||
0 commit comments