Skip to content

Commit

Permalink
prevent accessing non-existing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Sep 9, 2023
1 parent f8042cb commit ab57417
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 @@ -711,7 +711,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
if p.scripts is not None:
p.scripts.before_process(p)

stored_opts = {k: opts.data[k] for k in p.override_settings.keys()}
stored_opts = {k: opts.data[k] for k in p.override_settings.keys() if k in opts.data}

try:
# if no checkpoint override or the override checkpoint can't be found, remove override entry and load opts checkpoint
Expand Down

0 comments on commit ab57417

Please sign in to comment.