diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-09-09 13:35:50 +0000 |
---|---|---|
committer | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2023-09-09 13:35:50 +0000 |
commit | ab5741717546758c57cf6c2a040645ec2b44690a (patch) | |
tree | f14da20e3c2f586c125d46f880fa54246706b3df /modules/processing.py | |
parent | f8042cb323f0b581e3a49880dd0023e39d7dcc2c (diff) | |
download | stable-diffusion-webui-gfx803-ab5741717546758c57cf6c2a040645ec2b44690a.tar.gz stable-diffusion-webui-gfx803-ab5741717546758c57cf6c2a040645ec2b44690a.tar.bz2 stable-diffusion-webui-gfx803-ab5741717546758c57cf6c2a040645ec2b44690a.zip |
prevent accessing non-existing keys
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 0c191428..618f8abe 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -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
|