Convert "unable to set locale" into warning
This commit is contained in:
1 parent
f1fd0a309f
commit
5b982b9e9f
1 file changed
+2
-2
@@ -1,6 +1,6 @@
|
||||
#This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms.
|
||||
"Report"
|
||||
from trytond.netsvc import Service, service_exist, Logger, LOG_ERROR
|
||||
from trytond.netsvc import Service, service_exist, Logger, LOG_WARNING
|
||||
from trytond import pooler
|
||||
import copy
|
||||
import xml
|
||||
@@ -483,7 +483,7 @@ class Report(object):
|
||||
language = _LOCALE2WIN32.get(language, language)
|
||||
locale.setlocale(locale.LC_ALL, str(language + '.' + encoding))
|
||||
except Exception:
|
||||
Logger().notify_channel('web-service', LOG_ERROR,
|
||||
Logger().notify_channel('web-service', LOG_WARNING,
|
||||
'Report %s: unable to set locale "%s"' % \
|
||||
(self._name, language + '.' + encoding))
|
||||
if date:
|
||||
|
||||
Reference in new issue
Block a user