aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Archiver/HyperArch.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2013-07-12 14:29:44 -0700
committerMark Sapiro <mark@msapiro.net>2013-07-12 14:29:44 -0700
commit36f6592662f0a84b60b2277a00cf3cc85df52b8d (patch)
treefd167c40121c05cc2e8e2c083a39714ed87f2020 /Mailman/Archiver/HyperArch.py
parente80d72c40923b082f5e113b2d732f679c7e8b632 (diff)
downloadmailman2-36f6592662f0a84b60b2277a00cf3cc85df52b8d.tar.gz
mailman2-36f6592662f0a84b60b2277a00cf3cc85df52b8d.tar.xz
mailman2-36f6592662f0a84b60b2277a00cf3cc85df52b8d.zip
- Added logging for template errors in HyperArch.py. (LP: #558254)
Diffstat (limited to '')
-rw-r--r--Mailman/Archiver/HyperArch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py
index 33a77f0b..a7f46276 100644
--- a/Mailman/Archiver/HyperArch.py
+++ b/Mailman/Archiver/HyperArch.py
@@ -226,9 +226,9 @@ def quick_maketext(templatefile, dict=None, lang=None, mlist=None):
Utils.GetCharSet(lang),
'replace')
text = sdict.interpolate(utemplate)
- except (TypeError, ValueError):
+ except (TypeError, ValueError), e:
# The template is really screwed up
- pass
+ syslog('error', 'broken template: %s\n%s', filepath, e)
# Make sure the text is in the given character set, or html-ify any bogus
# characters.
return Utils.uncanonstr(text, lang)