mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-15 01:27:05 +08:00
ruff fix
This commit is contained in:
parent
10211d1a93
commit
d3a4a7a0fa
@ -82,7 +82,7 @@ def validate_required_fields(entry: Dict, entry_index: int, required_fields: Lis
|
|||||||
elif isinstance(entry[field], str) and not entry[field].strip():
|
elif isinstance(entry[field], str) and not entry[field].strip():
|
||||||
errors.append(f"Field '{field}' is empty")
|
errors.append(f"Field '{field}' is empty")
|
||||||
elif field == 'files' and not entry[field]: # Empty array
|
elif field == 'files' and not entry[field]: # Empty array
|
||||||
errors.append(f"Field 'files' is empty array")
|
errors.append("Field 'files' is empty array")
|
||||||
|
|
||||||
return errors
|
return errors
|
||||||
|
|
||||||
|
|||||||
@ -377,7 +377,7 @@ def extract_nodes_from_repo(repo_path: Path, verbose: bool = False, force_rescan
|
|||||||
# Extract metadata from this file
|
# Extract metadata from this file
|
||||||
metadata = extract_metadata_only(str(py_file))
|
metadata = extract_metadata_only(str(py_file))
|
||||||
all_metadata.update(metadata)
|
all_metadata.update(metadata)
|
||||||
except Exception as e:
|
except Exception:
|
||||||
# Silently skip files that can't be read
|
# Silently skip files that can't be read
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user