only returns ckpt directories if they are not none

This commit is contained in:
EllangoK 2023-01-29 02:32:53 -05:00
parent 0a8515085e
commit 659d602dce

View File

@ -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]