diff options
| -rw-r--r-- | Mailman/Handlers/Decorate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Handlers/Decorate.py b/Mailman/Handlers/Decorate.py index 96a591ec4..63c86e608 100644 --- a/Mailman/Handlers/Decorate.py +++ b/Mailman/Handlers/Decorate.py @@ -94,8 +94,8 @@ def decorate(mlist, template, what, extradict={}): # Interpolate into the template try: text = (template % d).replace('\r\n', '\n') - except ValueError, e: + except (ValueError, TypeError), e: syslog('error', 'Exception while calculating %s:\n%s', what, e) what = what.upper() - text = _('[INVALID %(what)s]') + text = template return text |
