From 85105fc070b365b1940f249aa5edce50507cfe2d Mon Sep 17 00:00:00 2001 From: Brandon <58442074+brandonrising@users.noreply.github.com> Date: Tue, 15 Aug 2023 15:54:17 -0400 Subject: [PATCH] Update invokeai/app/services/batch_manager_storage.py Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com> --- invokeai/app/services/batch_manager_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/app/services/batch_manager_storage.py b/invokeai/app/services/batch_manager_storage.py index 799be67e66..b2249ffe77 100644 --- a/invokeai/app/services/batch_manager_storage.py +++ b/invokeai/app/services/batch_manager_storage.py @@ -451,7 +451,7 @@ class SqliteBatchProcessStorage(BatchProcessStorageBase): (batch_id,), ) - result = cast(list[sqlite3.Row], self._cursor.fetchone()) + result = cast(Optional[sqlite3.Row], self._cursor.fetchone()) except sqlite3.Error as e: self._conn.rollback() raise BatchSessionNotFoundException from e