[r22833]Fix crash when Gramps is passed an invalid locale

svn: r22836
This commit is contained in:
John Ralls 2013-08-09 20:01:42 +00:00
parent 82ea4e8685
commit ee076d2c91

View File

@ -43,7 +43,6 @@ LOG = logging.getLogger(".")
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from ..const import GRAMPS_LOCALE as glocale from ..const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext _ = glocale.translation.gettext
from ..datehandler import codeset
from ..constfunc import conv_to_unicode, conv_to_unicode_direct, UNITYPE, STRTYPE from ..constfunc import conv_to_unicode, conv_to_unicode_direct, UNITYPE, STRTYPE
#strings in database are utf-8 #strings in database are utf-8