Handle error when _user_tags column is added on the fly (#3854)
This commit is contained in:
parent
286c92aef0
commit
76a12ca5b6
1 changed files with 6 additions and 1 deletions
|
|
@ -240,7 +240,12 @@ def get_stats(stats, doctype, filters=[]):
|
|||
filters = json.loads(filters)
|
||||
stats = {}
|
||||
|
||||
columns = frappe.db.get_table_columns(doctype)
|
||||
try:
|
||||
columns = frappe.db.get_table_columns(doctype)
|
||||
except MySQLdb.OperationalError:
|
||||
# raised when _user_tags column is added on the fly
|
||||
columns = []
|
||||
|
||||
for tag in tags:
|
||||
if not tag in columns: continue
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue