mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-06 10:42:39 +00:00
check if dep is available before dfs
This commit is contained in:
parent
3ef1f0e1e2
commit
9659fe6792
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ def topological_sort(
|
|||
deps.append(dep)
|
||||
|
||||
for dep in deps:
|
||||
if dep not in visited:
|
||||
if dep not in visited and dep in providers_with_specs:
|
||||
dfs((dep, providers_with_specs[dep]), visited, stack)
|
||||
|
||||
stack.append(api_str)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue