Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
ckanpublish
Commits
50e1c7ac3e59
Commit
d218407f
authored
Nov 19, 2014
by
Denis Laxalde
Browse files
[hooks] Turn the error about incomplete configuration into a warning
To avoid cluttering the console.
parent
133dda956327
Changes
1
Show whitespace changes
Inline
Side-by-side
utils.py
View file @
50e1c7ac
...
...
@@ -47,7 +47,7 @@ def ckan_instance_configured(cls, req, **kwargs):
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" '
req
.
warning
(
'CKAN instance configuration incomplete, missing "%s" '
'option'
%
option
)
return
0
return
1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment