chore: raise exception via frappe.msgprint
This commit is contained in:
parent
5cc11910ad
commit
0a0045e9cc
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue