瀏覽代碼

Merge pull request #8557 from frappe/clarkejj-patch-2

fix: report the DocType's name when its associated table is missing
version-14
mergify[bot] 5 年之前
committed by GitHub
父節點
當前提交
3b32c4d613
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/database/database.py

+ 1
- 1
frappe/database/database.py 查看文件

@@ -854,7 +854,7 @@ class Database(object):
"""Returns list of column names from given doctype."""
columns = self.get_db_table_columns('tab' + doctype)
if not columns:
raise self.TableMissingError
raise self.TableMissingError('DocType', doctype)
return columns

def has_column(self, doctype, column):


Loading…
取消
儲存