mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 18:46:52 +01:00
added options to change database backend
This commit is contained in:
parent
9e71b70d4b
commit
75beb91791
3 changed files with 14 additions and 4 deletions
4
src/documents/checks.py
Normal file → Executable file
4
src/documents/checks.py
Normal file → Executable file
|
|
@ -2,7 +2,7 @@ import textwrap
|
|||
|
||||
from django.conf import settings
|
||||
from django.core.checks import Error, register
|
||||
from django.db.utils import OperationalError
|
||||
from django.db.utils import OperationalError, ProgrammingError
|
||||
|
||||
|
||||
@register()
|
||||
|
|
@ -14,7 +14,7 @@ def changed_password_check(app_configs, **kwargs):
|
|||
try:
|
||||
encrypted_doc = Document.objects.filter(
|
||||
storage_type=Document.STORAGE_TYPE_GPG).first()
|
||||
except OperationalError:
|
||||
except (OperationalError, ProgrammingError):
|
||||
return [] # No documents table yet
|
||||
|
||||
if encrypted_doc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue