Merge pull request #18516 from tobiasge/dont-fail-on-debug

Fix #18515: Don't fail in DEBUG mode
This commit is contained in:
bctiemann 2025-01-28 15:20:52 -05:00 committed by GitHub
commit 9ac79ebbdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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