Commit 7e4dfca
committed
Remove unnecessary try-except for CancelledError in _check_errors
The task.cancelled() check on line 281 already ensures that CancelledError
will never be raised when calling task.exception(). The try-except block
was redundant and added unnecessary complexity.
Thanks to reviewer comment for catching this.1 parent a52d0c9 commit 7e4dfca
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
290 | 286 | | |
291 | 287 | | |
292 | 288 | | |
| |||
0 commit comments