summaryrefslogtreecommitdiff
path: root/mailman/i18n.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-01-20 20:54:22 -0500
committerBarry Warsaw2009-01-20 20:54:22 -0500
commitf6cfc823e94fdc67114534ffa4e0e058d6ee81b8 (patch)
treedae9158dfd05fd92b18d576f57b78e906196a42b /mailman/i18n.py
parent0c996b693d1cc68d864acc313ba919197717a413 (diff)
downloadmailman-f6cfc823e94fdc67114534ffa4e0e058d6ee81b8.tar.gz
mailman-f6cfc823e94fdc67114534ffa4e0e058d6ee81b8.tar.zst
mailman-f6cfc823e94fdc67114534ffa4e0e058d6ee81b8.zip
More cleanup.
Diffstat (limited to 'mailman/i18n.py')
-rw-r--r--mailman/i18n.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mailman/i18n.py b/mailman/i18n.py
index d5e54ded2..12a06dc02 100644
--- a/mailman/i18n.py
+++ b/mailman/i18n.py
@@ -92,9 +92,11 @@ class using_language(object):
self._old_translation = _translation
set_language(self._language)
- def __exit__(self, exc_type, exc_val, exc_tb):
+ def __exit__(self, *exc_info):
global _translation
_translation = self._old_translation
+ # Do not suppress exceptions.
+ return False
# Set up the global translation based on environment variables. Mostly used