Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(internal): catch pathlib OSError in packages.py [backport 2.10] (#…
…9723) Backport 93c0f05 from #9720 to 2.10. This should fix the issue reported in #9718 , whereby pathlib propagates an OSError from the underlying WindowsPath implementation. This is an allowed error as per the [docs](https://docs.python.org/3/library/pathlib.html#pathlib.WindowsPath). I'm proposing a test for this, but I'm actually unable to validate the fix since I don't have the means to test this without significant investment. Hopefully a reviewer can suggest something... ## Checklist - [x] The PR description includes an overview of the change - [x] The PR description articulates the motivation for the change - [x] The change includes tests OR the PR description describes a testing strategy - [x] The PR description notes risks associated with the change, if any - [x] Newly-added code is easy to change - [x] The change follows the [library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) - [x] The change includes or references documentation updates if necessary - [x] Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) ## Reviewer Checklist - [x] Title is accurate - [x] All changes are related to the pull request's stated goal - [x] Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes - [x] Testing strategy adequately addresses listed risks - [x] Newly-added code is easy to change - [x] Release note makes sense to a user of the library - [x] If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment - [x] Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting) Co-authored-by: David Sanchez <[email protected]>
- Loading branch information