aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2010-09-07 15:25:24 -0700
committerMark Sapiro <msapiro@value.net>2010-09-07 15:25:24 -0700
commitaa911e138aa82a21197e0bda656ac51eab45447d (patch)
treedd67f990f37cc65745ef62312b40212fca71c25d
parent7422edc8142b8b199fd78d75c80d631603555722 (diff)
downloadmailman2-aa911e138aa82a21197e0bda656ac51eab45447d.tar.gz
mailman2-aa911e138aa82a21197e0bda656ac51eab45447d.tar.xz
mailman2-aa911e138aa82a21197e0bda656ac51eab45447d.zip
It's not necessary to catch KeyError - dict is a SafeDict().
Diffstat (limited to '')
-rw-r--r--Mailman/i18n.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/i18n.py b/Mailman/i18n.py
index c2d0896c..5f926b77 100644
--- a/Mailman/i18n.py
+++ b/Mailman/i18n.py
@@ -89,7 +89,7 @@ def _(s):
dict[k] = v.encode(charset, 'replace')
try:
return tns % dict
- except (ValueError, KeyError, TypeError):
+ except (ValueError, TypeError):
# Bad interpolation format. Punt.
return tns