1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Handle programming error when evaluating the replaces list for 320

This commit is contained in:
Wayne Witzel III 2017-11-03 08:53:53 -04:00
parent ce393da6fd
commit d7f4707044
No known key found for this signature in database
GPG Key ID: B4F07BDC564D6301

View File

@ -10,7 +10,8 @@ from django.db import (
connection,
migrations,
models,
OperationalError
OperationalError,
ProgrammingError
)
from django.conf import settings
import taggit.managers
@ -26,7 +27,7 @@ def replaces():
recorder = migrations.recorder.MigrationRecorder(connection)
result = recorder.migration_qs.filter(app='main').filter(name__in=squashed).all()
return [('main', m.name) for m in result]
except OperationalError:
except (OperationalError, ProgrammingError):
return []