mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-15 02:57:09 +01:00
fixed some issues with the ordering, test cases and migrations.
This commit is contained in:
parent
69c04a209a
commit
ecfae9dadd
4 changed files with 40 additions and 12 deletions
|
|
@ -2,6 +2,7 @@ import textwrap
|
|||
|
||||
from django.conf import settings
|
||||
from django.core.checks import Error, register
|
||||
from django.core.exceptions import FieldError
|
||||
from django.db.utils import OperationalError, ProgrammingError
|
||||
|
||||
from documents.signals import document_consumer_declaration
|
||||
|
|
@ -16,7 +17,7 @@ def changed_password_check(app_configs, **kwargs):
|
|||
try:
|
||||
encrypted_doc = Document.objects.filter(
|
||||
storage_type=Document.STORAGE_TYPE_GPG).first()
|
||||
except (OperationalError, ProgrammingError):
|
||||
except (OperationalError, ProgrammingError, FieldError):
|
||||
return [] # No documents table yet
|
||||
|
||||
if encrypted_doc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue