Fix methodcall on nonetype object
svn: r17284
This commit is contained in:
parent
598449a962
commit
e93a6e6329
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user