Fix methodcall on nonetype object
svn: r17283
This commit is contained in:
parent
dd1958ba82
commit
711ec274ba
@ -61,7 +61,7 @@ else:
|
|||||||
|
|
||||||
# If LANG contains ".UTF-8" use only the part to the left of "."
|
# If LANG contains ".UTF-8" use only the part to the left of "."
|
||||||
# Otherwise some date handler will not load.
|
# 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]
|
LANG = LANG.split(".")[0]
|
||||||
|
|
||||||
if not LANG:
|
if not LANG:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user