X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=mediagoblin%2Ftools%2Ftheme.py;h=97b041a61a5cb2cb769dcbc9c21b51e591ddb7d6;hb=89672855f199b2bc08126e09b4fba2579940a67e;hp=4c7a7c0e693706a5047e6b45274ddeff89a1a00a;hpb=faa74bf9f588557f058627a1456712eba4b8b7e8;p=mediagoblin.git 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):