def validate_table_has_rows(self, parentfield, raise_exception=None):
		if not (isinstance(self.get(parentfield), list) and len(self.get(parentfield)) > 0):
			label = self.meta.get_label(parentfield)
			frappe.throw(_("Table {0} cannot be empty").format(label), raise_exception or frappe.EmptyTableError)
Access all the things
dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.validate_table_has_rows--crossover with--dataset/ETHPy150Open airbnb/airflow/airflow/default_login.py/DefaultUser.is_superuser