Yeuoly 7 kuukautta sitten
vanhempi
commit
22df86fe8a
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 2 2
      api/core/plugin/manager/base.py
  2. 2 2
      api/services/plugin/plugin_service.py

+ 2 - 2
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

+ 2 - 2
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: