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