|
|
@@ -6,6 +6,7 @@ from __future__ import unicode_literals |
|
|
|
|
|
|
|
import frappe, json |
|
|
|
import frappe.permissions |
|
|
|
import MySQLdb |
|
|
|
from frappe.model.db_query import DatabaseQuery |
|
|
|
from frappe import _ |
|
|
|
|
|
|
@@ -255,6 +256,9 @@ def get_stats(stats, doctype, filters=[]): |
|
|
|
except frappe.SQLError: |
|
|
|
# does not work for child tables |
|
|
|
pass |
|
|
|
except MySQLdb.OperationalError: |
|
|
|
# raised when _user_tags column is added on the fly |
|
|
|
pass |
|
|
|
|
|
|
|
return stats |
|
|
|
|
|
|
|