diff --git a/plugins/openvino/src/predict/__init__.py b/plugins/openvino/src/predict/__init__.py index 33b092b1de..202a759e69 100644 --- a/plugins/openvino/src/predict/__init__.py +++ b/plugins/openvino/src/predict/__init__.py @@ -145,8 +145,8 @@ async def run_batch(self): for i, result in enumerate(results): batch[i][1].set_result(result) except Exception as e: - for i, result in enumerate(results): - batch[i][1].set_exception(e) + for input in batch: + input[1].set_exception(e) async def flush_batch(self): self.batch_flush = None