1
0
Fork 0
forked from github/pelican

Clarify error message when LOCALE cannot be set

Fixes #1906
This commit is contained in:
Justin Mayer 2016-10-22 15:35:01 -06:00
commit 270817c022

View file

@ -275,7 +275,9 @@ def configure_settings(settings):
except locale.Error:
pass
else:
logger.warning("LOCALE option doesn't contain a correct value")
logger.warning(
"Locale could not be set. Check the LOCALE setting, ensuring it "
"is valid and available on your system.")
if ('SITEURL' in settings):
# If SITEURL has a trailing slash, remove it and provide a warning