Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault committed Dec 7, 2023
1 parent 4187cfa commit 95c9abb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nuclia/sdk/kbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ def delete(
raise ValueError("zone is required")
kbs = self._auth.kbs(kwargs["account_id"])
kb_obj = retrieve(kbs, slug)
if not kb_obj:
raise ValueError("Knowledge Box not found")
path = get_regional_url(
zone, KB_ENDPOINT.format(account=kwargs["account_id"], kb=kb_obj.id)
)
Expand Down

0 comments on commit 95c9abb

Please sign in to comment.