Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarobartt committed Aug 7, 2023
1 parent 0d0b1b6 commit e51d177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/argilla/client/feedback/dataset/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ def delete(self) -> None:
Raises:
PermissionError: if the user does not have either `owner` or `admin` role.
Exception: if the `FeedbackDataset` cannot be deleted from Argilla.
RuntimeError: if the `FeedbackDataset` cannot be deleted from Argilla.
"""
try:
datasets_api_v1.delete_dataset(client=self._client, id=self.id)
except Exception as e:
raise Exception(f"Failed while deleting the `FeedbackDataaset` from Argilla with exception: {e}") from e
raise RuntimeError(f"Failed while deleting the `FeedbackDataset` from Argilla with exception: {e}") from e

0 comments on commit e51d177

Please sign in to comment.