mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Merge pull request #569 from wwitzel3/release_3.2.2
Handle programming error when evaluating the replaces list for 320
This commit is contained in:
@@ -10,7 +10,8 @@ from django.db import (
|
|||||||
connection,
|
connection,
|
||||||
migrations,
|
migrations,
|
||||||
models,
|
models,
|
||||||
OperationalError
|
OperationalError,
|
||||||
|
ProgrammingError
|
||||||
)
|
)
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
import taggit.managers
|
import taggit.managers
|
||||||
@@ -26,7 +27,7 @@ def replaces():
|
|||||||
recorder = migrations.recorder.MigrationRecorder(connection)
|
recorder = migrations.recorder.MigrationRecorder(connection)
|
||||||
result = recorder.migration_qs.filter(app='main').filter(name__in=squashed).all()
|
result = recorder.migration_qs.filter(app='main').filter(name__in=squashed).all()
|
||||||
return [('main', m.name) for m in result]
|
return [('main', m.name) for m in result]
|
||||||
except OperationalError:
|
except (OperationalError, ProgrammingError):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user