From e55f11c5b9b9ff24ccdc708c424a5210596dbd99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 26 Nov 2014 16:53:35 +0100 Subject: [PATCH] Fixed wrong default types for plugin hooks etc --- src/octoprint/plugin/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/plugin/core.py b/src/octoprint/plugin/core.py index 79708d8d..e647052c 100644 --- a/src/octoprint/plugin/core.py +++ b/src/octoprint/plugin/core.py @@ -240,7 +240,7 @@ class PluginManager(object): def get_hooks(self, hook): if not hook in self.plugin_hooks: - return [] + return dict() return {hook[0]: hook[1] for hook in self.plugin_hooks[hook]} def get_implementations(self, *types): @@ -254,7 +254,7 @@ class PluginManager(object): result = result.intersection(implementations) if result is None: - return set() + return dict() return {impl[0]: impl[1] for impl in result} def get_helpers(self, name, *helpers):