fix error msgs; fix floats handling

This commit is contained in:
Tropfchen
2023-09-29 19:20:34 +02:00
parent fc970b306f
commit b66c2e9486
2 changed files with 24 additions and 20 deletions
+10 -5
View File
@@ -1,6 +1,12 @@
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
from .nodes import YARS, YARSAdv
NODE_CLASS_MAPPINGS = {"YARS": YARS, "YARSAdv": YARSAdv}
NODE_DISPLAY_NAME_MAPPINGS = {
"YARS": "yaResolution Selector",
"YARSAdv": "yaResolution Selector (Advanced)",
}
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
# --------------------------- Install web extension ----------------------------
import shutil
@@ -14,12 +20,11 @@ script_path = node_dir / "js" / "quickNodes.js"
destination_dir = comfy_dir / "web" / "extensions" / "tropfchen"
destination_path = destination_dir / "yarsQuickNodes.js"
ER = "during installing Embedding Picker web extension"
try:
destination_dir.mkdir(parents=True, exist_ok=True)
shutil.copy2(script_path, destination_path)
except PermissionError as permission_error:
print(f"Permission error {ER}: {permission_error}")
print(f"Permission error: {permission_error}")
except Exception as e:
print(f"An unexpected error occurred {ER}: {e}")
print(f"An unexpected error occurred: {e}")