Skip to content

Commit

Permalink
[ImageBackup]
Browse files Browse the repository at this point in the history
* fix crash:

07:29:02.5319   File "/usr/lib/enigma2/python/Plugins/SystemPlugins/SoftwareManager/ImageBackup.py", line 116, in ImageList
07:29:02.5328 UnboundLocalError: cannot access local variable 'index' where it is not associated with a value
07:29:02.5329 [ePyObject] (PyObject_CallObject(<traceback object at 0xa67eaae8>,(0,)) failed)
(cherry picked from commit 20d85e0)
  • Loading branch information
jbleyel committed May 1, 2024
1 parent 64cd085 commit 8d169ae
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def ImageList(self, imagedict):
imageList.append(ChoiceEntryComponent("", (_("Internal flash: %s %s as USB Recovery") % (DISTRO, DISTROVERSION), "slotCode", True)))
imageList.append(ChoiceEntryComponent("", (_("Internal flash: %s %s ") % (DISTRO, DISTROVERSION), "slotCode", False)))
self["config"].setList(imageList)
index = 0
for index, item in enumerate(imageList):
if item[0][1] == str(currentImageSlot):
break
Expand Down

0 comments on commit 8d169ae

Please sign in to comment.