summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pykolab/utils.py b/pykolab/utils.py
index a4cb2e2..c74759b 100644
--- a/pykolab/utils.py
+++ b/pykolab/utils.py
@@ -352,7 +352,8 @@ def translate(mystring, locale_name='en_US'):
try:
locale.setlocale(locale.LC_ALL, (locale_name,locale_charset))
- except Error, errmsg:
+ except:
+ log.error(_("Could not set locale to %r,%r") % (local_name,locale_charset))
pass
command = [ '/usr/bin/iconv',