Skip to content

Commit

Permalink
non-serializable as None
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Apr 8, 2024
1 parent 219e644 commit 1e1176b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def js(self):
"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)
Expand Down

0 comments on commit 1e1176b

Please sign in to comment.