Skip to content

Commit

Permalink
[Wizard.py] add sanity check that "evaluatedlist" exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Sep 30, 2024
1 parent 1dedea8 commit 4e8fb2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/Screens/Wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def selChanged(self):

if self.showConfig and self.wizard[self.currStep]["config"]["screen"] is not None:
self["config"].instance.moveSelection(self["config"].instance.moveUp)
elif self.showList and len(self.wizard[self.currStep]["evaluatedlist"]) > 0:
elif self.showList and hasattr(self.wizard[self.currStep], "evaluatedlist") and len(self.wizard[self.currStep]["evaluatedlist"]) > 0:
if "onselect" in self.wizard[self.currStep]:
self.selection = self["list"].current[-1]
# print("[Wizard] self.selection:", self.selection)
Expand Down

0 comments on commit 4e8fb2f

Please sign in to comment.