Fix #209 - Raise when getting SQL statements fail.
This commit is contained in:
1 parent
74a7ee9239
commit
bef47906d1
4 files changed
+34
-7
No files matched your search
@@ -315,14 +315,11 @@ class MigrationLinter(object):
|
||||
)
|
||||
except (ValueError, ProgrammingError):
|
||||
logger.warning(
|
||||
(
|
||||
"Error while executing sqlmigrate on (%s, %s). "
|
||||
"Continuing execution with empty SQL."
|
||||
),
|
||||
"Error while executing sqlmigrate on (%s, %s).",
|
||||
app_label,
|
||||
migration_name,
|
||||
)
|
||||
sql_statement = ""
|
||||
raise
|
||||
return sql_statement.splitlines()
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in new issue
Block a user