mirror of
				https://github.com/Neocky/pluGET.git
				synced 2024-04-29 16:12:30 +00:00 
			
		
		
		
	Fixed array index out of range
Changes: - fixed array index out of range error when checking/updating
This commit is contained in:
		| @@ -124,7 +124,6 @@ def checkInstalledPackage(inputSelectedObject="all"): | |||||||
|                 fileVersion = getFileVersion(plugin) |                 fileVersion = getFileVersion(plugin) | ||||||
|                 pluginId = getInstalledPlugin(fileName, fileVersion) |                 pluginId = getInstalledPlugin(fileName, fileVersion) | ||||||
|             except TypeError: |             except TypeError: | ||||||
|                 i += 1 |  | ||||||
|                 continue |                 continue | ||||||
|             pluginIdStr = str(pluginId) |             pluginIdStr = str(pluginId) | ||||||
|             if fileVersion == '': |             if fileVersion == '': | ||||||
| @@ -204,10 +203,8 @@ def updateInstalledPackage(inputSelectedObject='all'): | |||||||
|                 pluginId = getInstalledPlugin(fileName, fileVersion) |                 pluginId = getInstalledPlugin(fileName, fileVersion) | ||||||
|                 latestVersion = getLatestPluginVersion(pluginId) |                 latestVersion = getLatestPluginVersion(pluginId) | ||||||
|             except TypeError: |             except TypeError: | ||||||
|                 i += 1 |  | ||||||
|                 continue |                 continue | ||||||
|             except ValueError: |             except ValueError: | ||||||
|                 i += 1 |  | ||||||
|                 continue |                 continue | ||||||
|             pluginIdStr = str(pluginId) |             pluginIdStr = str(pluginId) | ||||||
|             if pluginId == None or pluginId == '': |             if pluginId == None or pluginId == '': | ||||||
| @@ -326,7 +323,7 @@ def updateInstalledPackage(inputSelectedObject='all'): | |||||||
|                         except FileNotFoundError: |                         except FileNotFoundError: | ||||||
|                             print(oColors.brightRed +  f"FileNotFoundError: Old plugin file coulnd't be deleted" + oColors.standardWhite) |                             print(oColors.brightRed +  f"FileNotFoundError: Old plugin file coulnd't be deleted" + oColors.standardWhite) | ||||||
|  |  | ||||||
|             i = i + 1 |             i += 1 | ||||||
|     except TypeError: |     except TypeError: | ||||||
|         print(oColors.brightRed + "Error occured: Aborted updating for plugins." + oColors.standardWhite) |         print(oColors.brightRed + "Error occured: Aborted updating for plugins." + oColors.standardWhite) | ||||||
|     print(oColors.brightYellow + f"Plugins updated: [{pluginsUpdated}/{i}]" + oColors.standardWhite) |     print(oColors.brightYellow + f"Plugins updated: [{pluginsUpdated}/{i}]" + oColors.standardWhite) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Neocky
					Neocky