diff --git a/frappe/utils/global_search.py b/frappe/utils/global_search.py index 35e9d40758..f9a07e3212 100644 --- a/frappe/utils/global_search.py +++ b/frappe/utils/global_search.py @@ -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