[ mailman-Patches-1537408 ] Log error on screwed-up template

SourceForge.net noreply at sourceforge.net
Sat Jun 7 15:36:26 CEST 2008


Patches item #1537408, was opened at 2006-08-09 10:17
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1537408&group_id=103

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Thijs Kinkhorst (kink)
Assigned to: Nobody/Anonymous (nobody)
Summary: Log error on screwed-up template

Initial Comment:
Hello!

Bob Tanner supplied us with the following patch to add
logging to the code that handles really "screwed up
templates" so the admin can more easily see what has
gone wrong.

Please consider, thanks!

Thijs

--- HyperArch.py        2003-12-26 14:41:30.000000000 -0600
+++ HyperArch.py-bob    2005-11-23 03:19:13.000000000 -0600
@@ -217,8 +217,9 @@
                                    
Utils.GetCharSet(lang),
                                     'replace')
                 text = sdict.interpolate(utemplate)
-        except (TypeError, ValueError):
+        except (TypeError, ValueError), e:
             # The template is really screwed up
+            syslog('error', 'The template is really
screwed up: %s\n',
e)
             pass
     # Make sure the text is in the given character
set, or html-ify any
     # bogus
     # characters.

----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2008-06-07 09:36

Message:
Logged In: YES 
user_id=11375
Originator: NO

I've attached a patch file including this change, but haven't actually
tested the code with the patch yet.


File Added: mailman-archiver-template.diff

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1537408&group_id=103


More information about the Mailman-coders mailing list