From 4ed8c6a09cbbf68009fdf6f13f1bae72ff727d10 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sun, 10 Jun 2012 13:32:23 +0200 Subject: [PATCH] don't test webassets key if it can be unset --- pelican/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/settings.py b/pelican/settings.py index b9912a47..9dcba369 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -152,7 +152,7 @@ def configure_settings(settings, default_settings=None, filename=None): "http://docs.notmyidea.org/alexis/pelican/settings.html#timezone " "for more information") - if settings['WEBASSETS']: + if 'WEBASSETS' in settings: try: from webassets.ext.jinja2 import AssetsExtension settings['JINJA_EXTENSIONS'].append(AssetsExtension)