Fix #209 - Raise when getting SQL statements fail.

This commit is contained in:
David Wobrock authored and David Wobrock committed 2022-07-28 23:45:14 +02:00
1 parent 74a7ee9239
commit bef47906d1
4 files changed
+34 -7

No files matched your search

+2 -5
View File
@@ -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