Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a19f0d6

Browse files
authored
Merge pull request frappe#34119 from akhilnarang/fix-pdf-check
fix: don't call `file.check_content()` twice
2 parents fc29dc4 + dc2422e commit a19f0d6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

frappe/core/doctype/file/file.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ def validate(self):
141141
self.validate_file_url()
142142
self.validate_file_on_disk()
143143
self.file_size = frappe.form_dict.file_size or self.file_size
144-
self.check_content()
145144

146145
def validate_attachment_references(self):
147146
if not self.attached_to_doctype:

0 commit comments

Comments
 (0)