Fix configuration loading when 'cubicweb.includes' is not set
authorChristophe de Vienne <christophe@unlish.com>
Fri, 16 Jan 2015 22:50:05 +0100
changeset 11540 10a1ee7836ed
parent 11539 ff581d66f682
child 11541 732b00868f00
Fix configuration loading when 'cubicweb.includes' is not set Closes #4849314
pyramid_cubicweb/__init__.py
--- a/pyramid_cubicweb/__init__.py	Mon Jan 05 15:54:12 2015 +0100
+++ b/pyramid_cubicweb/__init__.py	Fri Jan 16 22:50:05 2015 +0100
@@ -51,7 +51,7 @@
     if asbool(config.registry.settings.get('cubicweb.defaults', True)):
         config.include('pyramid_cubicweb.defaults')
 
-    for name in aslist(config.registry.settings.get('cubicweb.includes')):
+    for name in aslist(config.registry.settings.get('cubicweb.includes', [])):
         config.include(name)
 
     config.include('pyramid_cubicweb.core')