From 8d169ae99f3e9b3d931f360bc2df17196bc26600 Mon Sep 17 00:00:00 2001 From: jbleyel Date: Fri, 26 Apr 2024 13:18:14 +0200 Subject: [PATCH] [ImageBackup] * 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(,(0,)) failed) (cherry picked from commit 20d85e026baaa8b88c86d0a23290ec208df3d4e6) --- lib/python/Plugins/SystemPlugins/SoftwareManager/ImageBackup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/python/Plugins/SystemPlugins/SoftwareManager/ImageBackup.py b/lib/python/Plugins/SystemPlugins/SoftwareManager/ImageBackup.py index 6a1c89380a8..9c1af03ae94 100644 --- a/lib/python/Plugins/SystemPlugins/SoftwareManager/ImageBackup.py +++ b/lib/python/Plugins/SystemPlugins/SoftwareManager/ImageBackup.py @@ -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