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:
Tobias Genannt 2025-01-28 19:19:34 +01:00
parent 2728a6cfec
commit c57ae6e1f7

View File

@ -28,4 +28,7 @@ class CoreConfig(AppConfig):
# Clear Redis cache on startup in development mode
if settings.DEBUG:
cache.clear()
try:
cache.clear()
except Exception:
pass