fixed a bug

This commit is contained in:
Saifeddine ALOUI 2023-10-22 21:04:38 +02:00
parent 38783aaae6
commit cc909a7dda

View File

@ -398,7 +398,7 @@ class MainMenu(Menu):
print()
print(f"{ASCIIColors.color_green}Current binding: {ASCIIColors.color_reset}{self.lollms_app.config['binding_name']}")
for p in self.lollms_app.lollms_paths.bindings_zoo_path.iterdir():
if p.is_dir() and not p.stem.startswith("."):
if p.is_dir() and not p.stem.startswith(".") and p.stem !="binding_template":
if (p/"binding_card.yaml").exists():
with open(p/"binding_card.yaml", "r") as f:
card = yaml.safe_load(f)