Skip to content

Commit 9ac79eb

Browse files
authored
Merge pull request #18516 from tobiasge/dont-fail-on-debug
Fix #18515: Don't fail in DEBUG mode
2 parents e6c0519 + 07403f6 commit 9ac79eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

netbox/core/apps.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@ def ready(self):
2828

2929
# Clear Redis cache on startup in development mode
3030
if settings.DEBUG:
31-
cache.clear()
31+
try:
32+
cache.clear()
33+
except Exception:
34+
pass

0 commit comments

Comments
 (0)