Cover both the cases where the Redis backend is not configured and where it's None
This commit is contained in:
parent
bd18d1cbc1
commit
b7181085f3
1 changed files with 2 additions and 0 deletions
|
@ -196,6 +196,8 @@ class Backend(Thread):
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
redis = get_backend('redis')
|
redis = get_backend('redis')
|
||||||
|
if not redis:
|
||||||
|
raise KeyError()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.logger.warning("Backend {} does not implement send_message " +
|
self.logger.warning("Backend {} does not implement send_message " +
|
||||||
"and the fallback Redis backend isn't configured")
|
"and the fallback Redis backend isn't configured")
|
||||||
|
|
Loading…
Reference in a new issue