Skip to content

Commit

Permalink
Merge pull request #70 from mirekdlugosz/remove-nonexistent-attribute
Browse files Browse the repository at this point in the history
Remove reference to nonexistent attribute `enabled_items` in BaseSelect.item_select
  • Loading branch information
digitronik authored Feb 10, 2025
2 parents 403573f + ddc1d81 commit 22cae74
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/widgetastic_patternfly5/components/menus/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,7 @@ def item_select(self, item):
try:
return super().item_select(item)
except DropdownItemDisabled:
raise SelectItemDisabled(
'Item "{}" of {} is disabled\n'
"The following items are available and enabled: {}".format(
item, repr(self), self.enabled_items
)
)
raise SelectItemDisabled('Item "{}" of {} is disabled')

def fill(self, value):
"""Fills a Select with a value."""
Expand Down

0 comments on commit 22cae74

Please sign in to comment.