Skip to content

Commit

Permalink
refactor: Introduced base class FeastError for all Feast exceptions (f…
Browse files Browse the repository at this point in the history
…east-dev#4465)

introduced base class FeastError for all Feast exceptions, with initial methods to map the grpc and HTTP status code

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
  • Loading branch information
dmartinol committed Aug 29, 2024
1 parent 3e07339 commit e833ff1
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 87 deletions.
2 changes: 1 addition & 1 deletion sdk/python/feast/cli_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def handler_list_all_permissions_roles_verbose(
for o in objects:
permitted_actions = ALL_ACTIONS.copy()
for action in ALL_ACTIONS:
# Following code is derived from enforcer.enforce_policy but has a different return type and does not raise PermissionError
# Following code is derived from enforcer.enforce_policy but has a different return type and does not raise FeastPermissionError
matching_permissions = [
p
for p in permissions
Expand Down
Loading

0 comments on commit e833ff1

Please sign in to comment.