diff --git a/gestion/mail/locale_util.py b/gestion/mail/locale_util.py index d69b903c..a69f6bb3 100644 --- a/gestion/mail/locale_util.py +++ b/gestion/mail/locale_util.py @@ -16,6 +16,9 @@ def setlocale(name): saved = locale.setlocale(locale.LC_ALL) try: yield locale.setlocale(locale.LC_ALL, name) + except: + yield saved + print "Warning: Failed setting locale %r" % name finally: locale.setlocale(locale.LC_ALL, saved)