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:
Christopher Allan Webber 2012-07-14 22:44:06 -05:00
parent 0416b86621
commit 27c9bb8a58

View File

@ -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):