Commit 20e8fd0
committed
Fix asyncio.CancelledError detection and add test coverage
- Fix module check to use startswith("asyncio") instead of == "asyncio"
to properly match asyncio.exceptions.CancelledError
- Add test case for asyncio.CancelledError to verify it bypasses retry loop
Addresses review feedback from chatgpt-codex-connector bot1 parent 1721d58 commit 20e8fd0
File tree
3 files changed
+33
-1
lines changed- repos
- src/openai
- tests
3 files changed
+33
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
919 | 950 | | |
920 | 951 | | |
921 | 952 | | |
| |||
0 commit comments