Skip to content

Commit

Permalink
Merge pull request #18516 from tobiasge/dont-fail-on-debug
Browse files Browse the repository at this point in the history
Fix #18515: Don't fail in DEBUG mode
  • Loading branch information
bctiemann authored Jan 28, 2025
2 parents e6c0519 + 07403f6 commit 9ac79eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion netbox/core/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ def ready(self):

# Clear Redis cache on startup in development mode
if settings.DEBUG:
cache.clear()
try:
cache.clear()
except Exception:
pass

0 comments on commit 9ac79eb

Please sign in to comment.