fix: better message

This commit is contained in:
sokumon 2025-08-18 15:14:53 +05:30
parent ca5831b1a8
commit bbc093640b

View file

@ -377,7 +377,7 @@ class File(Document):
def check_content(self):
if self.file_type == "PDF" and not is_pdf_safe(self._content):
frappe.throw("PDF contains malicious content")
frappe.throw(_("PDF cannot be uploaded, It contains unsafe content"))
def validate_duplicate_entry(self):
if not self.flags.ignore_duplicate_entry_error and not self.is_folder: