From cb0282e6766809708c95406a89d8da5f41e63301 Mon Sep 17 00:00:00 2001 From: Neocky Date: Wed, 7 Apr 2021 20:38:29 +0200 Subject: [PATCH] Fixed array index out of range Changes: - fixed array index out of range error when checking/updating --- src/plugin/plugin_updatechecker.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugin/plugin_updatechecker.py b/src/plugin/plugin_updatechecker.py index f7a230c..fb87657 100644 --- a/src/plugin/plugin_updatechecker.py +++ b/src/plugin/plugin_updatechecker.py @@ -124,7 +124,6 @@ def checkInstalledPackage(inputSelectedObject="all"): fileVersion = getFileVersion(plugin) pluginId = getInstalledPlugin(fileName, fileVersion) except TypeError: - i += 1 continue pluginIdStr = str(pluginId) if fileVersion == '': @@ -204,10 +203,8 @@ def updateInstalledPackage(inputSelectedObject='all'): pluginId = getInstalledPlugin(fileName, fileVersion) latestVersion = getLatestPluginVersion(pluginId) except TypeError: - i += 1 continue except ValueError: - i += 1 continue pluginIdStr = str(pluginId) if pluginId == None or pluginId == '': @@ -326,7 +323,7 @@ def updateInstalledPackage(inputSelectedObject='all'): except FileNotFoundError: print(oColors.brightRed + f"FileNotFoundError: Old plugin file coulnd't be deleted" + oColors.standardWhite) - i = i + 1 + i += 1 except TypeError: print(oColors.brightRed + "Error occured: Aborted updating for plugins." + oColors.standardWhite) print(oColors.brightYellow + f"Plugins updated: [{pluginsUpdated}/{i}]" + oColors.standardWhite)