-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix AsyncResolver swallowing the error message #9451
Conversation
We would incorrectly create the `OSError` exception by passing the string as the first argument. The first argument of `OSError` is the errno. This meant that the message would end up in the wrong place. https://docs.python.org/3/library/exceptions.html#OSError
much better instead of |
needs a test |
We have fallback code for 3.11/3.10 that has the same problem. |
I'll do another PR for 3.11 to fix the fallback code as well |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #9451 +/- ##
=======================================
Coverage 98.58% 98.58%
=======================================
Files 107 107
Lines 35010 35026 +16
Branches 4145 4151 +6
=======================================
+ Hits 34515 34531 +16
Misses 330 330
Partials 165 165
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Looks like this is worth doing a patch release for https://github.com/home-assistant/core/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen+%22ClientConnectorError%22+%22%5BNone%5D%22 |
Backport to 3.10: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 216e082 on top of patchback/backports/3.10/216e082807d02fafaacca57fc883c86826b126d3/pr-9451 Backporting merged PR #9451 into master
🤖 @patchback |
Backport to 3.11: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 216e082 on top of patchback/backports/3.11/216e082807d02fafaacca57fc883c86826b126d3/pr-9451 Backporting merged PR #9451 into master
🤖 @patchback |
(cherry picked from commit 216e082)
(cherry picked from commit 216e082)
Same change as #9451 but for the query fallback code for older versions of aiodns
What do these changes do?
We would incorrectly create the
OSError
exception by passing the string as the first argument. The first argument ofOSError
is the errno. This meant that the message would end up in the wrong place.https://docs.python.org/3/library/exceptions.html#OSError
Are there changes in behavior for the user?
proper errors
Is it a substantial burden for the maintainers to support this?
no
Related issue number
#9447