aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2012-07-14 22:44:06 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2012-07-14 22:44:06 -0500
commit27c9bb8a58d92d85ead78916d2b1a6c4a43c513b (patch)
treee4c971f763cb8e0437059c5d1cffd01dda5ae8be
parent0416b866213d2e546d1848d3039f8f328a080fba (diff)
downloadmediagoblin-27c9bb8a58d92d85ead78916d2b1a6c4a43c513b.tar.lz
mediagoblin-27c9bb8a58d92d85ead78916d2b1a6c4a43c513b.tar.xz
mediagoblin-27c9bb8a58d92d85ead78916d2b1a6c4a43c513b.zip
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.
-rw-r--r--mediagoblin/tools/theme.py2
1 files changed, 1 insertions, 1 deletions
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):