From 27c9bb8a58d92d85ead78916d2b1a6c4a43c513b Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 14 Jul 2012 22:44:06 -0500 Subject: [PATCH] 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. --- mediagoblin/tools/theme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/tools/theme.py b/mediagoblin/tools/theme.py index 4c7a7c0e..97b041a6 100644 --- a/mediagoblin/tools/theme.py +++ b/mediagoblin/tools/theme.py @@ -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):