fix: ensure temporary files are deleted after inference in LightX2VModularInference
This commit is contained in:
+1
-1
Submodule lightx2v updated: 305350a16b...f662570da3
@@ -757,13 +757,13 @@ class LightX2VModularInference:
|
||||
logging.error(f"Error during inference: {e}")
|
||||
raise
|
||||
|
||||
# finally:
|
||||
# for temp_file in temp_files:
|
||||
# if os.path.exists(temp_file):
|
||||
# try:
|
||||
# os.unlink(temp_file)
|
||||
# except Exception:
|
||||
# pass
|
||||
finally:
|
||||
for temp_file in temp_files:
|
||||
if os.path.exists(temp_file):
|
||||
try:
|
||||
os.unlink(temp_file)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
|
||||
Reference in New Issue
Block a user