-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
building: retry mechanism: enable retry on winerror 110
Add winerror 110 (`ERROR_OPEN_FAILED`) to the list of permissible error codes for the retry mechanism that attempts to mitigate build failures due to anti-virus program interference. At the same time, reorganize the exception-checking code by merging all Windows specific code into a single branch. This allows us to re-use `_ALLOWED_WINERROR` with both `pywintypes.error` and `OSError`. With the latter, we now compare the `winerror` attribute as a fall back after `errno` comparison.
- Loading branch information
Showing
2 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(Windows) Add Windows error code 110 (``ERROR_OPEN_FAILED``) to the | ||
list of error codes eligible for the retry mechanism that attempts to | ||
mitigate build failures due to anti-virus program interference. |