From 02d186b0c6927beac92badcbc3b0d02b7d95cdf4 Mon Sep 17 00:00:00 2001 From: doctorpangloss <@hiddenswitch.com> Date: Tue, 29 Oct 2024 19:53:09 -0700 Subject: [PATCH] Fix pylint error --- comfy_extras/nodes/nodes_torch_compile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/comfy_extras/nodes/nodes_torch_compile.py b/comfy_extras/nodes/nodes_torch_compile.py index e6bcd545c..fe0d683a2 100644 --- a/comfy_extras/nodes/nodes_torch_compile.py +++ b/comfy_extras/nodes/nodes_torch_compile.py @@ -92,7 +92,10 @@ class TorchCompileModel(CustomNode): logging.warning("Encountered a model that cannot be compiled") return model, except OSError: - torch._inductor.utils.clear_inductor_caches() + try: + torch._inductor.utils.clear_inductor_caches() # pylint: disable=no-member + except Exception: + pass raise