From ddd408c24dbc47b1564157f0b5834c6e947f28c4 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste <bleme@pm.me>
Date: Mon, 14 Oct 2019 12:19:04 +0200
Subject: [PATCH] update: fix Operational Error on fresh db creation

---
 djangoldp/apps.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/djangoldp/apps.py b/djangoldp/apps.py
index aac1db2d..8811cf84 100644
--- a/djangoldp/apps.py
+++ b/djangoldp/apps.py
@@ -1,4 +1,5 @@
 from django.apps import AppConfig
+from django.db import OperationalError
 
 
 class DjangoldpConfig(AppConfig):
@@ -21,3 +22,6 @@ class DjangoldpConfig(AppConfig):
                 existing_source = LDPSource.objects.get(federation=path)
             except LDPSource.DoesNotExist:
                 LDPSource.objects.create(federation=path, urlid=Model.absolute_url(model_class))
+            except OperationalError:
+                pass
+
-- 
GitLab