mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Fix #18515: Don't fail in DEBUG mode
When no Redis server is reachable management commands failed without this try...except block.
This commit is contained in:
parent
34fa3835be
commit
07403f690a
@ -28,4 +28,7 @@ class CoreConfig(AppConfig):
|
|||||||
|
|
||||||
# Clear Redis cache on startup in development mode
|
# Clear Redis cache on startup in development mode
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
cache.clear()
|
try:
|
||||||
|
cache.clear()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user