소스 검색

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:


불러오는 중...
취소
저장