[fix] specify exception
This commit is contained in:
parent
f66cfcece5
commit
9cee53c33f
1 changed files with 1 additions and 2 deletions
|
|
@ -310,9 +310,8 @@ def search(text, start=0, limit=20, doctype=""):
|
|||
try:
|
||||
if frappe.get_meta(r.doctype).image_field:
|
||||
r.image = frappe.db.get_value(r.doctype, r.name, frappe.get_meta(r.doctype).image_field)
|
||||
except:
|
||||
except Exception:
|
||||
frappe.clear_messages()
|
||||
pass
|
||||
|
||||
return results
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue