diff --git a/hobo/theme/utils.py b/hobo/theme/utils.py index 518907f..a91b2ad 100644 --- a/hobo/theme/utils.py +++ b/hobo/theme/utils.py @@ -31,7 +31,10 @@ def get_themes(): 'themes.json') if not os.path.exists(filename): continue - for theme in json.load(open(filename)): + themes_data = json.load(open(filename)) + if not isinstance(themes_data, dict): + themes_data = {'themes': themes_data} + for theme in themes_data['themes']: if not 'module' in theme: theme['module'] = dirname themes.append(theme)