fix: dont stop next unattached file from being attached if file_url of first file is invalid
This commit is contained in:
parent
638c9ea5b9
commit
04f8d231a7
1 changed files with 1 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ def attach_files_to_document(doc: "Document", event) -> None:
|
|||
# we dont want the update to fail if file cannot be attached for some reason
|
||||
value = doc.get(df.fieldname)
|
||||
if not (value or "").startswith(("/files", "/private/files")):
|
||||
return
|
||||
continue
|
||||
|
||||
if frappe.db.exists(
|
||||
"File",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue