From 1e7de3ac5a6474840d0e7311559763026223da51 Mon Sep 17 00:00:00 2001 From: Neocky Date: Sun, 14 Mar 2021 21:07:06 +0100 Subject: [PATCH] FileNotFoundError will catch when using SFTP --- src/plugin/plugin_downloader.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/plugin/plugin_downloader.py b/src/plugin/plugin_downloader.py index d9e21b4..423c1ee 100644 --- a/src/plugin/plugin_downloader.py +++ b/src/plugin/plugin_downloader.py @@ -122,15 +122,8 @@ def getSpecificPackage(ressourceId, downloadPath, inputPackageVersion='latest'): if not checkConfig().localPluginFolder: if inputPackageVersion is None or inputPackageVersion == 'latest': - try: - downloadSpecificVersion(ressourceId=ressourceId, downloadPath=downloadPackagePath) - deleteTempPluginFolder(downloadPath) - except HTTPError as err: - print(oColors.brightRed + f"Error: {err.code} - {err.reason}" + oColors.standardWhite) + downloadSpecificVersion(ressourceId=ressourceId, downloadPath=downloadPackagePath) + deleteTempPluginFolder(downloadPath) else: - try: - downloadSpecificVersion(ressourceId, downloadPackagePath, versionId) - deleteTempPluginFolder(downloadPath) - except HTTPError as err: - print(oColors.brightRed + f"Error: {err.code} - {err.reason}" + oColors.standardWhite) - + downloadSpecificVersion(ressourceId, downloadPackagePath, versionId) + deleteTempPluginFolder(downloadPath)