non-serializable as None

This commit is contained in:
w-e-w 2024-04-08 18:18:33 +09:00
parent 219e64489c
commit 1e1176b6eb
1 changed files with 1 additions and 1 deletions

View File

@ -608,7 +608,7 @@ class Processed:
"version": self.version,
}
return json.dumps(obj)
return json.dumps(obj, default=lambda o: None)
def infotext(self, p: StableDiffusionProcessing, index):
return create_infotext(p, self.all_prompts, self.all_seeds, self.all_subseeds, comments=[], position_in_batch=index % self.batch_size, iteration=index // self.batch_size)