Procházet zdrojové kódy

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] před 5 roky
committed by GitHub
rodič
revize
3b32c4d613
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      frappe/database/database.py

+ 1
- 1
frappe/database/database.py Zobrazit soubor

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


Načítá se…
Zrušit
Uložit