From 711ec274ba9d3560f5a958cbe3353fccdb10deaf Mon Sep 17 00:00:00 2001 From: Michiel Nauta Date: Tue, 26 Apr 2011 20:19:18 +0000 Subject: [PATCH] Fix methodcall on nonetype object svn: r17283 --- src/DateHandler/_DateHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DateHandler/_DateHandler.py b/src/DateHandler/_DateHandler.py index 1826f6cde..ebf6e6944 100644 --- a/src/DateHandler/_DateHandler.py +++ b/src/DateHandler/_DateHandler.py @@ -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: