Use raw mode on custom or broken sieve file (#3387)

* Use raw mode on custom or broken sieve file

* Fixed display of sieve filters when none are active

* Updated test
This commit is contained in:
Spitfireap
2024-12-21 15:23:32 +00:00
committed by GitHub
parent 3c5d321870
commit 2cb6ccebfa
8 changed files with 48 additions and 8 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
from django.db.utils import ProgrammingError
from django.db.utils import ProgrammingError, OperationalError
from django.core.checks import register, Info, Warning
from django.conf import settings
from django.utils.translation import gettext as _
@@ -53,7 +53,7 @@ def check_password_hasher(app_configs, **kwargs):
msgs = []
try:
hasher = check_for_deprecated_password_schemes()
except ProgrammingError:
except (ProgrammingError, OperationalError):
# This is probably a fresh install...
return []
if hasher: