Переглянути джерело

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

version-14
Faris Ansari 8 роки тому
committed by Rushabh Mehta
джерело
коміт
76a12ca5b6
1 змінених файлів з 6 додано та 1 видалено
  1. +6
    -1
      frappe/desk/reportview.py

+ 6
- 1
frappe/desk/reportview.py Переглянути файл

@@ -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:


Завантаження…
Відмінити
Зберегти