Commits

Benoit C committed 8a1c95d

modules are optionnals

  • Participants
  • Parent commits bcff10e

Comments (0)

Files changed (1)

File autiste/core.py

         self.load_modules()
 
     def load_modules(self):
-        for modname in self.conf.get('modules'):
+
+        if not self.conf.get("modules"):
+            return
+        for modname in self.conf.get('modules', []):
             try:
                 modconf = self.conf['modules'].get(modname)
                 ret = __import__("autiste.modules.%s" % modname, globals(), locals(), ['Module'])