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
MJU-POPS
ckanext-dgu
Commits
65eb568b
Commit
65eb568b
authored
Jan 06, 2015
by
Tom Mortimer-Jones
Browse files
[noticket] Handle null stored in theme-secondary extra
parent
9b0dd5a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckanext/dgu/lib/helpers.py
View file @
65eb568b
...
...
@@ -767,7 +767,7 @@ def get_package_fields(package, pkg_extras, dataset_was_harvested,
secondary_themes
=
pkg_extras
.
get
(
'theme-secondary'
)
if
secondary_themes
:
try
:
secondary_themes
=
json
.
loads
(
secondary_themes
)
secondary_themes
=
json
.
loads
(
secondary_themes
)
or
''
if
isinstance
(
secondary_themes
,
types
.
StringTypes
):
secondary_themes
=
THEMES
.
get
(
secondary_themes
,
secondary_themes
)
...
...
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