Browse Source

Handle error when _user_tags column is added on the fly (#3854)

version-14
Faris Ansari 8 years ago
committed by Rushabh Mehta
parent
commit
76a12ca5b6
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      frappe/desk/reportview.py

+ 6
- 1
frappe/desk/reportview.py View File

@@ -240,7 +240,12 @@ def get_stats(stats, doctype, filters=[]):
filters = json.loads(filters) filters = json.loads(filters)
stats = {} 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: for tag in tags:
if not tag in columns: continue if not tag in columns: continue
try: try:


Loading…
Cancel
Save