fix: Remove unnecessary raise after throw
This commit is contained in:
parent
9797c1ad18
commit
14783a1ba1
1 changed files with 0 additions and 1 deletions
|
|
@ -258,7 +258,6 @@ class File(Document):
|
|||
self.content_hash = get_content_hash(f.read())
|
||||
except IOError:
|
||||
frappe.throw(_("File {0} does not exist").format(self.file_url))
|
||||
raise
|
||||
|
||||
def on_trash(self):
|
||||
if self.is_home_folder or self.is_attachments_folder:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue