fix: handle case when table does not exist in the database
Signed-off-by: Chinmay D. Pai <chinmay.pai@zerodha.com>
This commit is contained in:
parent
66016ea76c
commit
5830cdbd96
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ def get_stats(stats, doctype, filters=[]):
|
|||
|
||||
try:
|
||||
columns = frappe.db.get_table_columns(doctype)
|
||||
except (frappe.db.InternalError, Exception):
|
||||
except (frappe.db.InternalError, frappe.db.ProgrammingError):
|
||||
# raised when _user_tags column is added on the fly
|
||||
# raised if its a virtual doctype
|
||||
columns = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue