diff options
author | EllangoK <karun.ellango7@gmail.com> | 2023-01-29 07:32:53 +0000 |
---|---|---|
committer | EllangoK <karun.ellango7@gmail.com> | 2023-01-29 07:32:53 +0000 |
commit | 659d602dce42608a664642021ea2441da045d189 (patch) | |
tree | e1efb2208386daf7f6e55f93d584810559ec5c9e /modules/ui_extra_networks_checkpoints.py | |
parent | 0a8515085ef258d4b76fdc000f7ed9d55751d6b8 (diff) | |
download | stable-diffusion-webui-gfx803-659d602dce42608a664642021ea2441da045d189.tar.gz stable-diffusion-webui-gfx803-659d602dce42608a664642021ea2441da045d189.tar.bz2 stable-diffusion-webui-gfx803-659d602dce42608a664642021ea2441da045d189.zip |
only returns ckpt directories if they are not none
Diffstat (limited to 'modules/ui_extra_networks_checkpoints.py')
-rw-r--r-- | modules/ui_extra_networks_checkpoints.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui_extra_networks_checkpoints.py b/modules/ui_extra_networks_checkpoints.py index c66cb830..5b471671 100644 --- a/modules/ui_extra_networks_checkpoints.py +++ b/modules/ui_extra_networks_checkpoints.py @@ -34,5 +34,5 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage): }
def allowed_directories_for_previews(self):
- return [shared.cmd_opts.ckpt_dir, sd_models.model_path]
+ return [v for v in [shared.cmd_opts.ckpt_dir, sd_models.model_path] if v is not None]
|