Adapt to more custom nodes specifications

This commit is contained in:
doctorpangloss 2024-02-22 20:05:48 -08:00
parent bf4f8a6ed3
commit dd1f7b6183
2 changed files with 6 additions and 0 deletions

View File

@ -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):

View File

@ -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))