Compare commits

...

4 Commits

Author SHA1 Message Date
Buumcode
266d63e705
Merge f1f4f545f4 into 5943fbf457 2026-01-08 18:41:21 +01:00
Dr.Lt.Data
5943fbf457
bump comfyui_manager version to the 4.0.5 (#11732)
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.10, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.11, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.12, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-unix-nightly (12.1, , linux, 3.11, [self-hosted Linux], nightly) (push) Waiting to run
Execution Tests / test (macos-latest) (push) Waiting to run
Execution Tests / test (ubuntu-latest) (push) Waiting to run
Execution Tests / test (windows-latest) (push) Waiting to run
Test server launches without errors / test (push) Waiting to run
Unit Tests / test (macos-latest) (push) Waiting to run
Unit Tests / test (ubuntu-latest) (push) Waiting to run
Unit Tests / test (windows-2022) (push) Waiting to run
2026-01-08 08:15:42 -08:00
V0pr0S
f1f4f545f4 Fix AttributeError in ModelPatcher.__del__ by adding safety check for 'pinned' 2025-12-25 21:59:14 +03:00
V0pr0S
a64fe846af Fix AttributeError in ModelPatcher.__del__ by adding safety check for 'pinned' 2025-12-25 21:28:54 +03:00
2 changed files with 15 additions and 5 deletions

View File

@ -651,8 +651,12 @@ class ModelPatcher:
self.pinned.remove(key)
def unpin_all_weights(self):
for key in list(self.pinned):
self.unpin_weight(key)
if hasattr(self, 'pinned'): # Safety check
for key in list(self.pinned):
self.unpin_weight(key)
else:
# Log or skip: self.pinned was not set
pass
def _load_list(self):
loading = []
@ -1356,6 +1360,12 @@ class ModelPatcher:
self.clear_cached_hook_weights()
def __del__(self):
self.unpin_all_weights()
self.detach(unpatch_all=False)
try:
if hasattr(self, 'pinned'):
self.unpin_all_weights()
self.detach(unpatch_all=False)
except Exception as e:
# Suppress errors in destructor to avoid noise
pass

View File

@ -1 +1 @@
comfyui_manager==4.0.4
comfyui_manager==4.0.5