fixed issue 1363, failsafe when languages folder does not exist, thanks Roberto

This commit is contained in:
mdipierro
2013-03-06 12:24:30 -06:00
parent 63f7b35cf8
commit 74ecc762f3
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.4.2-stable+timestamp.2013.03.06.12.20.41
Version 2.4.2-stable+timestamp.2013.03.06.12.23.52
+2 -1
View File
@@ -237,7 +237,8 @@ def read_possible_languages_aux(langdir):
construct_plural_form) # construct_plural_form() for current language
plurals = {}
flist = oslistdir(langdir)
flist = oslistdir(langdir) if isdir(langdir) else []
# scan languages directory for plural dict files:
for pname in flist:
if regex_plural_file.match(pname):