Commit 659d602d authored by EllangoK's avatar EllangoK

only returns ckpt directories if they are not none

parent 0a851508
......@@ -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]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment