mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 00:18:12 +08:00
raises a redis exception
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ def monitor(run_once=False):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(term.red('Can not connect to Redis server.'))
|
print(term.red('Can not connect to Redis server.'))
|
||||||
logger.exception(e)
|
logger.exception(e)
|
||||||
return
|
raise e
|
||||||
with term.fullscreen(), term.hidden_cursor(), term.cbreak():
|
with term.fullscreen(), term.hidden_cursor(), term.cbreak():
|
||||||
val = None
|
val = None
|
||||||
start_width = int(term.width / 8)
|
start_width = int(term.width / 8)
|
||||||
|
|||||||
Reference in New Issue
Block a user