[minor] fix meta.py

This commit is contained in:
Rushabh Mehta 2017-06-19 12:24:27 +05:30
parent b06f987e55
commit 19736308b6

View file

@ -492,7 +492,7 @@ def trim_tables(doctype=None):
def clear_cache(doctype=None):
cache = frappe.cache()
if doctype in frappe.local.meta_cache:
if getattr(frappe.local, 'meta_cache') and (doctype in frappe.local.meta_cache):
del frappe.local.meta_cache[doctype]
for key in ('is_table', 'doctype_modules'):