MCPcopy Create free account
hub / github.com/1Panel-dev/MaxKB / is_valid_base_node

Method is_valid_base_node

apps/application/flow/common.py:279–284  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

277 node=node.properties.get("stepName"))))
278
279 def is_valid_base_node(self):
280 base_node_list = [node for node in self.nodes if node.id == 'base-node']
281 if len(base_node_list) == 0:
282 raise AppApiException(500, _('Basic information node is required'))
283 if len(base_node_list) > 1:
284 raise AppApiException(500, _('There can only be one basic information node'))

Callers 1

is_validMethod · 0.95

Calls 1

AppApiExceptionClass · 0.90

Tested by

no test coverage detected