Skip to content

Commit

Permalink
refactor: Introduced base class FeastError for all Feast exceptions (#…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
dmartinol committed Aug 29, 2024
1 parent 635a01b commit 5e753e4
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 64 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 5e753e4

Please sign in to comment.