-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
get_connection: catch OSError too #1832
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1832 +/- ##
=======================================
Coverage 94.41% 94.41%
=======================================
Files 75 75
Lines 16026 16026
=======================================
Hits 15131 15131
Misses 895 895
Continue to review full report at Codecov.
|
Why wasn't this change applied to |
Good catch. Maybe that part should be refactored to avoid repeating code, and this kind of problem. |
Thanks for confirming. |
See #2001 that applies the same change to |
Hi, @Enchufa2 redis-py/redis/asyncio/connection.py Line 1448 in 936d49f
|
@hyeongguen-song Because asyncio support was added 8 months ago, but this PR was opened 9 months ago. ;-) So, yeap, this should be ported to asyncio too. |
Thanks for reply 😉 |
which covers built-in ConnectionError, to recover from connection issues such as
ConnectionResetError
andConnectionAbortedError
. Closes #1772.Pull Request check-list
$ tox
pass with this change (including linting)?