From 07221076caa4942cdbe0838a2210720ee7996eda Mon Sep 17 00:00:00 2001 From: brosquinha Date: Sat, 27 Jan 2024 16:21:44 -0300 Subject: [PATCH] Allow for multi-module plugins --- houdini/plugins/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/houdini/plugins/__init__.py b/houdini/plugins/__init__.py index cb228f1..e291bc0 100644 --- a/houdini/plugins/__init__.py +++ b/houdini/plugins/__init__.py @@ -58,7 +58,10 @@ class PluginManager(_AbstractManager): await self.load(plugin_package) async def load(self, module): - plugin_class, plugin_type = inspect.getmembers(module, is_plugin).pop() + try: + plugin_class, plugin_type = inspect.getmembers(module, is_plugin).pop() + except IndexError: + return plugin_index = plugin_class.lower() if self.server.config.plugins != '*' and \