Skip to content

Commit

Permalink
chore: Catch all exceptions when applying migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorwalton committed Aug 5, 2024
1 parent 3d28064 commit 353f78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/db/db_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def apply_migrations():
# Apply migrations to the latest revision
try:
command.upgrade(alembic_cfg, "head")
except Exception as e: # Catch any type of exception
except Exception as e: # Catch any exception
logger.error(f"Error applying migrations: {e}")
raise e

Expand Down

0 comments on commit 353f78e

Please sign in to comment.