commit | 451b7e980ef00a10e8adfcd43273ceb7db971543 | [log] [tgz] |
---|---|---|
author | Bert JW Regeer <bertjw@regeer.org> | Mon Jan 17 07:01:29 2022 |
committer | Bert JW Regeer <bertjw@regeer.org> | Mon Jan 17 21:25:51 2022 |
tree | 01a9c4b6367f0524c318b60304f21b8e999858f1 | |
parent | a1868227405062b3daec28362cbaf071d26df2f3 [diff] |
Bugfix on Windows: OSError is not subscriptable When Waitress fails to launch on Windows due to an issue with the trigger socket not being ready for connections, we attempt to loop. In the past this was done by subscripting the OSError and checking to see if it matched errno.WSAEADDRINUSE, this is no longer possible in newer verisons of Python. This is a quick bugfix for a rare case which should no longer happen on Windows.