mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 20:40:00 +00:00
fix: remove redundant code from unregister_dataset
get_dataset() will raise an exception if a dataset won't be returned client handling is redundant Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
This commit is contained in:
parent
cd5c6a2fcd
commit
f77c36c50a
1 changed files with 0 additions and 2 deletions
|
|
@ -88,6 +88,4 @@ class DatasetsRoutingTable(CommonRoutingTableImpl, Datasets):
|
||||||
|
|
||||||
async def unregister_dataset(self, dataset_id: str) -> None:
|
async def unregister_dataset(self, dataset_id: str) -> None:
|
||||||
dataset = await self.get_dataset(dataset_id)
|
dataset = await self.get_dataset(dataset_id)
|
||||||
if dataset is None:
|
|
||||||
raise DatasetNotFoundError(dataset_id)
|
|
||||||
await self.unregister_object(dataset)
|
await self.unregister_object(dataset)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue