fix split on NoneType bug

This commit is contained in:
JeffZhang 2016-12-14 03:27:16 +08:00
commit db81499937

View file

@ -49,7 +49,7 @@ CONF = {
'github_pages_branch': _GITHUB_PAGES_BRANCHES['project'],
'default_pagination': 10,
'siteurl': '',
'lang': locale.getlocale()[0].split('_')[0],
'lang': locale.getlocale()[0].split('_')[0] if locale.getlocale() is not None else None,
'timezone': _DEFAULT_TIMEZONE
}