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

Handle Redis response errors instead of silencing them #15

Merged
merged 2 commits into from
Oct 17, 2016
Merged

Handle Redis response errors instead of silencing them #15

merged 2 commits into from
Oct 17, 2016

Conversation

maiksprenger
Copy link
Contributor

The exception handling for send() silenced all Redis errors apart from the
"full" message. This commit updates the exception logic to also
specifically handle the "unknown command" error which might point at an
unsupported version of Redis. It also now lets any other exception bubble
up instead of being silently dropped.

Reported by @wynbennett in #14.

I also added a wild guess as to what versions asgi_redis might support. I'm happy to also add Travis support for the whole grid of supported Django, Python and Travis versions if @andrewgodwin thinks it's a good idea.

The exception handling for send() silenced all Redis errors apart from
the "full" message. This commit updates the exception logic to also
specifically handle the "unknown command" error which might point at an
unsupported version of Redis. It also now lets any other exception
bubble up instead of being silently dropped.

Reported by @wynbennet in
#14.
I found no reference of supported versions of our dependencies, so I
made wild guesses as to what might be supported.
@andrewgodwin
Copy link
Member

Thanks!

@maiksprenger maiksprenger deleted the 14-send-exceptions branch January 26, 2017 13:00
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.

2 participants