summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
authorbwarsaw2003-01-28 00:13:22 +0000
committerbwarsaw2003-01-28 00:13:22 +0000
commit7c16dc7ec94ff6f0c9dcd68c388e8bd1fe72ad40 (patch)
tree237bf32ff890b42f4fdb4d7e4752352f851b0124 /Mailman/Utils.py
parent2ab25a6484bdec35653c8d2cb62100681afb9639 (diff)
downloadmailman-7c16dc7ec94ff6f0c9dcd68c388e8bd1fe72ad40.tar.gz
mailman-7c16dc7ec94ff6f0c9dcd68c388e8bd1fe72ad40.tar.zst
mailman-7c16dc7ec94ff6f0c9dcd68c388e8bd1fe72ad40.zip
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 4628e4870..922626849 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -469,8 +469,10 @@ def maketext(templatefile, dict=None, raw=0, lang=None, mlist=None):
# Try again after coercing the template to unicode
utemplate = unicode(template, GetCharSet(lang), 'replace')
text = sdict.interpolate(utemplate)
- except (TypeError, ValueError):
+ except (TypeError, ValueError), e:
# The template is really screwed up
+ from Mailman.Logging.Syslog import syslog
+ syslog('error', 'broken template: %s\n%s', filename, e)
pass
if raw:
return text