[minor] fix meta.py
This commit is contained in:
parent
b06f987e55
commit
19736308b6
1 changed files with 1 additions and 1 deletions
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue