From aa911e138aa82a21197e0bda656ac51eab45447d Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Tue, 7 Sep 2010 15:25:24 -0700 Subject: It's not necessary to catch KeyError - dict is a SafeDict(). --- Mailman/i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Mailman') 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 -- cgit v1.2.3