[hooks] Turn the error about incomplete configuration into a warning
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 19 Nov 2014 14:45:39 +0100
changeset 14 50e1c7ac3e59
parent 13 133dda956327
child 15 f0c22bd9116d
[hooks] Turn the error about incomplete configuration into a warning To avoid cluttering the console.
utils.py
--- a/utils.py	Mon Oct 20 16:06:38 2014 +0200
+++ b/utils.py	Wed Nov 19 14:45:39 2014 +0100
@@ -47,7 +47,7 @@
     config = req.vreg.config
     for option in ('ckan-baseurl', 'ckan-api-key', 'ckan-organization'):
         if not config.get(option):
-            req.error('CKAN instance configuration incomplete, missing "%s" '
-                      'option' % option)
+            req.warning('CKAN instance configuration incomplete, missing "%s" '
+                        'option' % option)
             return 0
     return 1