Skip to content
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

Instead of Exception, catch only RedisError #285

Merged
merged 2 commits into from Dec 4, 2020
Merged

Instead of Exception, catch only RedisError #285

merged 2 commits into from Dec 4, 2020

Conversation

brainix
Copy link
Owner

@brainix brainix commented Dec 4, 2020

Tighten up and target our try/except blocks in our distributed
algorithms. RedisError is the base exception class for all exceptions
raised by redis-py.

https://github.com/andymccurdy/redis-py/blob/1a41cfd95a53a95b078084d8627be6b6fba3bb71/redis/exceptions.py#L4-L5

Tighten up and target our `try`/`except` blocks in our distributed
algorithms.  `RedisError` is the base exception class for all exceptions
raised by redis-py.

https://github.com/andymccurdy/redis-py/blob/1a41cfd95a53a95b078084d8627be6b6fba3bb71/redis/exceptions.py#L4-L5
@brainix
Copy link
Owner Author

brainix commented Dec 4, 2020

🐟

@brainix brainix merged commit fe05d6a into master Dec 4, 2020
@brainix brainix deleted the rediserrors branch December 4, 2020 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant