From 109af28aec9dc148f088b33ee38be0fba3630b8c Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Mon, 22 Dec 2025 17:10:29 +0530 Subject: [PATCH] fix: adjust to bs4 API changes Signed-off-by: Akhil Narang --- frappe/core/doctype/communication/communication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/communication/communication.py b/frappe/core/doctype/communication/communication.py index 02f790fa9c..59aefc53bf 100644 --- a/frappe/core/doctype/communication/communication.py +++ b/frappe/core/doctype/communication/communication.py @@ -230,7 +230,7 @@ class Communication(Document, CommunicationEmailMixin): html_signature = soup.find("div", {"class": "ql-editor read-mode"}) _signature = None if html_signature: - _signature = html_signature.renderContents() + _signature = html_signature.encode_contents() if (cstr(_signature) or signature) not in self.content: self.content = f'{self.content}


{signature}'