From 6dcfd1b861b734310c08b699316c136094a0e1a4 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 7 Sep 2017 01:00:31 -0400 Subject: [PATCH] Ignore ProgramminError exception too while initializing the Quota model. Signed-off-by: Roberto Rosario --- mayan/apps/quotas/apps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mayan/apps/quotas/apps.py b/mayan/apps/quotas/apps.py index 55382cd0ba..ca0c975159 100644 --- a/mayan/apps/quotas/apps.py +++ b/mayan/apps/quotas/apps.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals -from django.db.utils import OperationalError +from django.db.utils import OperationalError, ProgrammingError from django.utils.translation import ugettext_lazy as _ from acls import ModelPermission @@ -33,7 +33,7 @@ class QuotasApp(MayanAppConfig): try: for quota in Quota.objects.all(): quota.update_receiver() - except OperationalError: + except (OperationalError, ProgrammingError): # Ignore errors during migration pass