Small fix to themedata_for_theme_dir utility about sections
If we can't find the theme section, we should use a dictionary instead of None in this section of code.
This commit is contained in:
parent
0416b86621
commit
27c9bb8a58
@ -32,7 +32,7 @@ def themedata_for_theme_dir(name, theme_dir):
|
||||
Given a theme directory, extract important theme information.
|
||||
"""
|
||||
# open config
|
||||
config = ConfigObj(os.path.join(theme_dir, 'theme.ini')).get('theme')
|
||||
config = ConfigObj(os.path.join(theme_dir, 'theme.ini')).get('theme', {})
|
||||
|
||||
templates_dir = os.path.join(theme_dir, 'templates')
|
||||
if not os.path.exists(templates_dir):
|
||||
|
Loading…
x
Reference in New Issue
Block a user