[fix] specify exception

This commit is contained in:
pratu16x7 2017-09-08 16:03:51 +05:30
parent f66cfcece5
commit 9cee53c33f

View file

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