diff --git a/invokeai/app/services/shared/sqlite_migrator/migrations/migration_2.py b/invokeai/app/services/shared/sqlite_migrator/migrations/migration_2.py index 9b9dedcc58..e7f8619653 100644 --- a/invokeai/app/services/shared/sqlite_migrator/migrations/migration_2.py +++ b/invokeai/app/services/shared/sqlite_migrator/migrations/migration_2.py @@ -159,6 +159,9 @@ class Migration2Callback: except ImageFileNotFoundException: self._logger.warning(f"Image {image_name} not found, skipping") continue + except Exception as e: + self._logger.warning(f"Error while checking image {image_name}, skipping: {e}") + continue if "invokeai_workflow" in pil_image.info: try: UnsafeWorkflowWithVersionValidator.validate_json(pil_image.info.get("invokeai_workflow", ""))