mirror of
https://github.com/solero/houdini.git
synced 2024-11-09 12:48:20 +00:00
Merge pull request #92 from brosquinha/master
Support multi-module plugins
This commit is contained in:
commit
2af6216cbb
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user