From 4165b06fbf726b521dd2dbfd31ef4bce72d2dbfd Mon Sep 17 00:00:00 2001 From: TinyTerra Date: Wed, 26 Feb 2025 11:21:18 +0100 Subject: [PATCH] prevent keyError --- ttNpy/tinyterraNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ttNpy/tinyterraNodes.py b/ttNpy/tinyterraNodes.py index 61989c0..63e914a 100644 --- a/ttNpy/tinyterraNodes.py +++ b/ttNpy/tinyterraNodes.py @@ -753,7 +753,7 @@ class ttNadv_xyPlot: self.executor.execute(prompt, self.num, extra_data, valid[2]) - if len(self.executor.outputs[self.unique_id]) > 2: + if len(self.executor.outputs.get(self.unique_id, [])) > 2: self.latent_list.append(self.executor.outputs[self.unique_id][-6][0]["samples"]) image = self.executor.outputs[self.unique_id][-3][0]