chore: raise exception via frappe.msgprint

This commit is contained in:
Gavin D'souza 2020-04-10 13:38:28 +05:30
parent 5cc11910ad
commit 0a0045e9cc

View file

@ -608,8 +608,7 @@ def get_local_image(file_url):
try:
image = Image.open(file_path)
except IOError:
frappe.msgprint(_("Unable to read file format for {0}").format(file_url))
raise
frappe.msgprint(_("Unable to read file format for {0}").format(file_url), raise_exception=True)
content = None