Also catch specific mysql errors during sqlmigrate
This commit is contained in:
1 parent
c57d3c9286
commit
5c5507a4c3
1 file changed
+2
-2
@@ -22,7 +22,7 @@ from subprocess import Popen, PIPE
|
|||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core.management import call_command
|
from django.core.management import call_command
|
||||||
from django.db import DEFAULT_DB_ALIAS, connections
|
from django.db import DEFAULT_DB_ALIAS, connections, ProgrammingError
|
||||||
|
|
||||||
from .cache import Cache
|
from .cache import Cache
|
||||||
from .constants import DEFAULT_CACHE_PATH
|
from .constants import DEFAULT_CACHE_PATH
|
||||||
@@ -207,7 +207,7 @@ class MigrationLinter(object):
|
|||||||
database=self.database,
|
database=self.database,
|
||||||
stdout=dev_null,
|
stdout=dev_null,
|
||||||
)
|
)
|
||||||
except ValueError:
|
except (ValueError, ProgrammingError):
|
||||||
logger.warning(
|
logger.warning(
|
||||||
(
|
(
|
||||||
"Error while executing sqlmigrate on (%s, %s). "
|
"Error while executing sqlmigrate on (%s, %s). "
|
||||||
|
|||||||
Reference in new issue
Block a user