------------------------------------------------------------
revno: 1394
fixes bug: https://launchpad.net/bugs/558254
committer: Mark Sapiro <m...@msapiro.net>
branch nick: 2.1
timestamp: Fri 2013-07-12 14:29:44 -0700
message:
  - Added logging for template errors in HyperArch.py.  (LP: #558254)
modified:
  Mailman/Archiver/HyperArch.py
  NEWS


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Archiver/HyperArch.py'
--- Mailman/Archiver/HyperArch.py	2010-02-23 01:07:33 +0000
+++ Mailman/Archiver/HyperArch.py	2013-07-12 21:29:44 +0000
@@ -226,9 +226,9 @@
                                     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)

=== modified file 'NEWS'
--- NEWS	2013-07-12 21:03:26 +0000
+++ NEWS	2013-07-12 21:29:44 +0000
@@ -61,6 +61,8 @@
 
   Bug Fixes and other patches
 
+    - Added logging for template errors in HyperArch.py.  (LP: #558254)
+
     - Added more explanation to the bad owner address message from
       bin/newlist.  (LP: #1200763)
 

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to