fix: Remove unnecessary raise after throw

This commit is contained in:
Suraj Shetty 2021-08-24 10:25:33 +05:30
parent 9797c1ad18
commit 14783a1ba1

View file

@ -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: