Initialize an empty module configuration if it has any (sentinel value)
This commit is contained in:
parent
aa4050f6cd
commit
68e357d037
@ -48,7 +48,8 @@ class ModuleContext:
|
||||
module_name in context.modules_configuration):
|
||||
self.config = context.modules_configuration[module_name]
|
||||
else:
|
||||
self.config = None
|
||||
from nemubot.tools.xmlparser.node import ModuleState
|
||||
self.config = ModuleState("module")
|
||||
|
||||
self.hooks = list()
|
||||
self.events = list()
|
||||
|
Loading…
Reference in New Issue
Block a user