summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-10-01 12:52:32 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-10-01 12:53:08 +0100
commit3434a5891e5e48b20a28431b9f20f2241cee4448 (patch)
tree0f36a69b4bd95a0e2c804994eb9d82f0d45c3830 /pykolab
parent64725059c447459a05f4c488954520caf47bee8e (diff)
downloadpykolab-3434a5891e5e48b20a28431b9f20f2241cee4448.tar.gz
Prevent traceback on undefined Error exception (#1014)
Diffstat (limited to 'pykolab')
-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',