From 5120a76ce5de104c609acda08171cdd47b36165e Mon Sep 17 00:00:00 2001 From: maryhipp Date: Wed, 26 Jun 2024 14:22:54 -0400 Subject: [PATCH] cleanup --- invokeai/app/api/routers/boards.py | 3 +-- .../shared/sqlite_migrator/migrations/migration_13.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/invokeai/app/api/routers/boards.py b/invokeai/app/api/routers/boards.py index d0116ad42f..0c599627e1 100644 --- a/invokeai/app/api/routers/boards.py +++ b/invokeai/app/api/routers/boards.py @@ -73,8 +73,7 @@ async def update_board( try: result = ApiDependencies.invoker.services.boards.update(board_id=board_id, changes=changes) return result - except Exception as e: - print(e) + except Exception: raise HTTPException(status_code=500, detail="Failed to update board") diff --git a/invokeai/app/services/shared/sqlite_migrator/migrations/migration_13.py b/invokeai/app/services/shared/sqlite_migrator/migrations/migration_13.py index ef04fe2fba..401c0a4866 100644 --- a/invokeai/app/services/shared/sqlite_migrator/migrations/migration_13.py +++ b/invokeai/app/services/shared/sqlite_migrator/migrations/migration_13.py @@ -5,9 +5,9 @@ from invokeai.app.services.shared.sqlite_migrator.sqlite_migrator_common import class Migration13Callback: def __call__(self, cursor: sqlite3.Cursor) -> None: - self._update_error_cols(cursor) + self._add_archived_col(cursor) - def _update_error_cols(self, cursor: sqlite3.Cursor) -> None: + def _add_archived_col(self, cursor: sqlite3.Cursor) -> None: """ - Adds `archived` columns to the board table. """