From 68410cb3d7bfba3a1b32bf67a9d5a383ef791683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 25 Jan 2019 16:14:45 +0100 Subject: [PATCH] :bug: Fix an issue with plugin sorting If we just uninstalled a plugin there might not be a PluginInfo object. In that case assume the plugin is not bundled (not False = True) --- src/octoprint/plugin/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugin/core.py b/src/octoprint/plugin/core.py index afa0cef9f..d605ebb16 100644 --- a/src/octoprint/plugin/core.py +++ b/src/octoprint/plugin/core.py @@ -1491,7 +1491,7 @@ class PluginManager(object): sorting_value = None plugin_info = self.get_plugin_info(impl[0], require_enabled=False) - return sorting_value is None, sorting_value, not plugin_info.bundled, impl[0] + return sorting_value is None, sorting_value, not plugin_info.bundled if plugin_info else True, impl[0] return [impl[1] for impl in sorted(result, key=sort_func)]