Skip to content
Snippets Groups Projects
Verified Commit 55501d2f authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Catch operational error to fix docker build

parent 70492bf4
No related branches found
No related tags found
1 merge request!378Resolve "Job Failed #12083"
Pipeline #4145 failed
...@@ -2,7 +2,7 @@ from typing import Any, List, Optional, Tuple ...@@ -2,7 +2,7 @@ from typing import Any, List, Optional, Tuple
import django.apps import django.apps
from django.conf import settings from django.conf import settings
from django.db import ProgrammingError from django.db import ProgrammingError, OperationalError
from django.http import HttpRequest from django.http import HttpRequest
from django.utils.module_loading import autodiscover_modules from django.utils.module_loading import autodiscover_modules
...@@ -67,7 +67,7 @@ class CoreConfig(AppConfig): ...@@ -67,7 +67,7 @@ class CoreConfig(AppConfig):
for backend in get_site_preferences()["auth__backends"]: for backend in get_site_preferences()["auth__backends"]:
settings._wrapped.AUTHENTICATION_BACKENDS.insert(idx, backend) settings._wrapped.AUTHENTICATION_BACKENDS.insert(idx, backend)
idx += 1 idx += 1
except ProgrammingError: except (ProgrammingError, OperationalError):
pass pass
def preference_updated( def preference_updated(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment