Merge branch 'maintenance' into devel

This commit is contained in:
Gina Häußge committed 2021-10-11 16:31:25 +02:00
commit b3affac9e5
51 files changed
+953 -539

No files matched your search

@@ -1251,6 +1251,14 @@ class PluginManagerPlugin(
)
abort(500, description="Could not uninstall plugin, its origin is unknown")
if plugin.implementation:
try:
plugin.implementation.on_plugin_pending_uninstall()
except Exception:
self._logger.exception(
"Error while calling on_plugin_pending_uninstall on the plugin, proceeding regardless"
)
if plugin.origin.type == "entry_point":
# plugin is installed through entry point, need to use pip to uninstall it
origin = plugin.origin[3]