mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 06:40:48 +08:00
Adapt to more custom nodes specifications
This commit is contained in:
parent
bf4f8a6ed3
commit
dd1f7b6183
@ -146,6 +146,8 @@ class Configuration(dict):
|
||||
self[key] = value
|
||||
|
||||
def __getattr__(self, item):
|
||||
if item not in self:
|
||||
return None
|
||||
return self[item]
|
||||
|
||||
def __setattr__(self, key, value):
|
||||
|
||||
@ -64,6 +64,10 @@ def _import_and_enumerate_nodes_in_module(module: types.ModuleType, print_import
|
||||
except KeyboardInterrupt as interrupted:
|
||||
raise interrupted
|
||||
except Exception as x:
|
||||
if isinstance(x, AttributeError):
|
||||
potential_path_error: AttributeError = x
|
||||
if potential_path_error.name == '__path__':
|
||||
continue
|
||||
logging.error(f"{full_name} import failed", exc_info=x)
|
||||
success = False
|
||||
timings.append((time.perf_counter() - time_before, full_name, success))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user