Commit 303adf8
committed
Preserve the real error if accept failed.
Otherwise, the exception would be about the variable 'conn'
never being assigned a value.
This scenario came up when there was an internal bug in circuitpython
sockets that made accept fail; however, it might be the case that accept
can "normally" fail, e.g., if all sockets are exhausted.1 parent 8e0b86a commit 303adf8
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
363 | 364 | | |
364 | 365 | | |
365 | 366 | | |
| |||
405 | 406 | | |
406 | 407 | | |
407 | 408 | | |
408 | | - | |
| 409 | + | |
| 410 | + | |
409 | 411 | | |
410 | 412 | | |
411 | 413 | | |
| |||
0 commit comments