mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-03 02:38:11 +08:00
consolidated redis ping
This commit is contained in:
+1
-3
@@ -278,7 +278,5 @@ def ping_redis(r):
|
||||
try:
|
||||
r.ping()
|
||||
except Exception as e:
|
||||
term = Terminal()
|
||||
print(term.red('Can not connect to Redis server.'))
|
||||
logger.exception(e)
|
||||
logger.error('Can not connect to Redis server.')
|
||||
raise e
|
||||
|
||||
Reference in New Issue
Block a user