-
Notifications
You must be signed in to change notification settings - Fork 68
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
Catch Exceptions thrown during authentication #35
Conversation
This will let us more easily catch an Exception if there's an error connecting.
@jtsternberg Can you try this out on your site with authentication and confirm it catches your Exception? I don't have an easy way of writing tests for the authentication case. |
Actually, I take that back. Once #40 is merged, I can write a test for failed authentication. |
Changing to this actually caused my error log to explode w/ these errors (repetitively):
|
Ah, because it tries to reconnect repeatedly. |
Actually, it may have to do w/ my tweaks to the file. I think the issue is that this error ("Failed to AUTH connection") is not in the |
Ok, it most definitely has to do with |
Rather than trying to use our fallback mechanism, we can just trigger an error here and let the fallback mechanism kick in later.
_call_redis()
Failing test case looks like this:
|
Catch Exceptions thrown during authentication
This will let us more easily catch an Exception if there's an error
connecting.
Fixes #34