Skip to content

Commit

Permalink
Catch keyerror for client side filter
Browse files Browse the repository at this point in the history
KeyErrors should be caught when a property isn't found and should return false
  • Loading branch information
gmatthews20 committed Jan 6, 2025
1 parent ba9d83e commit cbc0fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openstackquery/handlers/client_side_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _filter_func_wrapper(
"""
try:
item_prop = selected_prop_func(item)
except AttributeError:
except (AttributeError, KeyError):
return False
if not filter_func_kwargs:
filter_func_kwargs = {}
Expand Down

0 comments on commit cbc0fa4

Please sign in to comment.