mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
don't test webassets key if it can be unset
This commit is contained in:
parent
7c48937ea2
commit
4ed8c6a09c
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ def configure_settings(settings, default_settings=None, filename=None):
|
||||||
"http://docs.notmyidea.org/alexis/pelican/settings.html#timezone "
|
"http://docs.notmyidea.org/alexis/pelican/settings.html#timezone "
|
||||||
"for more information")
|
"for more information")
|
||||||
|
|
||||||
if settings['WEBASSETS']:
|
if 'WEBASSETS' in settings:
|
||||||
try:
|
try:
|
||||||
from webassets.ext.jinja2 import AssetsExtension
|
from webassets.ext.jinja2 import AssetsExtension
|
||||||
settings['JINJA_EXTENSIONS'].append(AssetsExtension)
|
settings['JINJA_EXTENSIONS'].append(AssetsExtension)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue