Fix methodcall on nonetype object

svn: r17283
This commit is contained in:
Michiel Nauta 2011-04-26 20:19:18 +00:00
parent dd1958ba82
commit 711ec274ba

View File

@ -61,7 +61,7 @@ else:
# If LANG contains ".UTF-8" use only the part to the left of "."
# Otherwise some date handler will not load.
if ".UTF-8" in LANG.upper():
if LANG and ".UTF-8" in LANG.upper():
LANG = LANG.split(".")[0]
if not LANG: