diff --git a/api/core/plugin/manager/base.py b/api/core/plugin/manager/base.py index 69566c7be4..36983665a0 100644 --- a/api/core/plugin/manager/base.py +++ b/api/core/plugin/manager/base.py @@ -51,8 +51,8 @@ class BasePluginManager: response = requests.request( method=method, url=str(url), headers=headers, data=data, params=params, stream=stream, files=files ) - except requests.exceptions.ConnectionError as e: - logger.exception(f"Request to Plugin Daemon Service failed: {e}") + except requests.exceptions.ConnectionError: + logger.exception("Request to Plugin Daemon Service failed") raise PluginDaemonInnerError(code=-500, message="Request to Plugin Daemon Service failed") return response diff --git a/api/services/plugin/plugin_service.py b/api/services/plugin/plugin_service.py index e8a1894aeb..81d6fd8aa1 100644 --- a/api/services/plugin/plugin_service.py +++ b/api/services/plugin/plugin_service.py @@ -37,9 +37,9 @@ class PluginService: manifests = { manifest.plugin_id: manifest for manifest in marketplace.batch_fetch_plugin_manifests(plugin_ids) } - except Exception as e: + except Exception: manifests = {} - logger.exception(f"failed to fetch plugin manifests: {e}") + logger.exception("failed to fetch plugin manifests") for plugin in plugins: if plugin.source == PluginInstallationSource.Marketplace: