Skip to content

Commit c2de9b0

Browse files
authored
Replace print with logging for Base64 conversion error
1 parent fe52c05 commit c2de9b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_nodes/IAT_nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def convert_base64(self, base64_str):
4444
img = torch.from_numpy(img)[None,]
4545
return (img,)
4646
except Exception as e:
47-
print(f"Base64转换失败: {str(e)}")
47+
logging.warning(f"Base64转换失败: {str(e)}")
4848
blank_img = torch.zeros((1, 512, 512, 3))
4949
return (blank_img,)
5050

0 commit comments

Comments
 (0)