Argument for LANG must be string and not None
This commit is contained in:
1 parent
2980ed34e1
commit
be472524f8
1 file changed
+1
-1
+1
-1
@@ -180,7 +180,7 @@ def setlang(lang=None):
|
||||
else:
|
||||
try:
|
||||
if os.name == 'nt':
|
||||
os.environ['LANG'] = None
|
||||
os.environ['LANG'] = ''
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
except:
|
||||
logging.getLogger('translate').warn(
|
||||
|
||||
Reference in new issue
Block a user