mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
ignore error on unregister
This commit is contained in:
parent
0098d24762
commit
7c30243ae8
1 changed files with 4 additions and 1 deletions
|
@ -31,7 +31,10 @@ def test_mcp_invocation(llama_stack_client, text_model_id, mcp_server):
|
||||||
uri = mcp_server["server_url"]
|
uri = mcp_server["server_url"]
|
||||||
|
|
||||||
# registering should not raise an error anymore even if you don't specify the auth token
|
# registering should not raise an error anymore even if you don't specify the auth token
|
||||||
llama_stack_client.toolgroups.unregister(toolgroup_id=test_toolgroup_id)
|
try:
|
||||||
|
llama_stack_client.toolgroups.unregister(toolgroup_id=test_toolgroup_id)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
llama_stack_client.toolgroups.register(
|
llama_stack_client.toolgroups.register(
|
||||||
toolgroup_id=test_toolgroup_id,
|
toolgroup_id=test_toolgroup_id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue