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