Skip to content

Commit 62ae861

Browse files
Throw an exception if create_database_migration_numbered_style fails
1 parent 0768fe3 commit 62ae861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cardinal_pythonlib/sqlalchemy/alembic_func.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def create_database_migration_numbered_style(
400400
new_seq_str,
401401
]
402402
log.info("From directory {!r}, calling: {!r}", alembic_ini_dir, cmdargs)
403-
subprocess.call(cmdargs)
403+
subprocess.run(cmdargs, check=True)
404404

405405

406406
def stamp_allowing_unusual_version_table(

0 commit comments

Comments
 (0)