Commit 65eb568b authored by Tom Mortimer-Jones's avatar Tom Mortimer-Jones
Browse files

[noticket] Handle null stored in theme-secondary extra

parent 9b0dd5a5
......@@ -767,7 +767,7 @@ def get_package_fields(package, pkg_extras, dataset_was_harvested,
secondary_themes = pkg_extras.get('theme-secondary')
if secondary_themes:
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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment