2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

ignore the now often-used 410 error

This commit is contained in:
Matthias Mair
2024-12-28 13:19:05 +01:00
parent 4c99f3dcbf
commit a584334a24

View File

@ -17,7 +17,7 @@ from pathlib import Path
import django.conf.locale import django.conf.locale
import django.core.exceptions import django.core.exceptions
from django.core.validators import URLValidator from django.core.validators import URLValidator
from django.http import Http404 from django.http import Http404, HttpResponseGone
import structlog import structlog
from corsheaders.defaults import default_headers from corsheaders.defaults import default_headers
@ -1340,7 +1340,7 @@ MARKDOWNIFY = {
} }
# Ignore these error typeps for in-database error logging # Ignore these error typeps for in-database error logging
IGNORED_ERRORS = [Http404, django.core.exceptions.PermissionDenied] IGNORED_ERRORS = [Http404, HttpResponseGone, django.core.exceptions.PermissionDenied]
# Maintenance mode # Maintenance mode
MAINTENANCE_MODE_RETRY_AFTER = 10 MAINTENANCE_MODE_RETRY_AFTER = 10