diff --git a/invokeai/app/services/images/images_default.py b/invokeai/app/services/images/images_default.py index 1206526bd5..fb6daf3e47 100644 --- a/invokeai/app/services/images/images_default.py +++ b/invokeai/app/services/images/images_default.py @@ -73,7 +73,12 @@ class ImageService(ImageServiceABC): session_id=session_id, ) if board_id is not None: - self.__invoker.services.board_image_records.add_image_to_board(board_id=board_id, image_name=image_name) + try: + self.__invoker.services.board_image_records.add_image_to_board( + board_id=board_id, image_name=image_name + ) + except Exception as e: + self.__invoker.services.logger.warn(f"Failed to add image to board {board_id}: {str(e)}") self.__invoker.services.image_files.save( image_name=image_name, image=image, metadata=metadata, workflow=workflow, graph=graph )