cope with garbage Date
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
rfc822.
This patch allows archive generation to survive a garbage Date
value. It recognizes the None return and does what it would
have done if Date had been missing.
*** Mailman/
2002
--- Mailman/
2003
***************
*** 223,228 ****
--- 223,230 ----
if datestr is missing:
date = parsedate_
+ if date is None:
+ return None
try:
*** Mailman/
2002
--- Mailman/
2003
***************
*** 73,78 ****
--- 73,80 ----
def safe_strftime(fmt, floatsecs):
+ if floatsecs is None:
+ return None
try:
return time.strftime(fmt, floatsecs)
except ValueError:
Logged In: YES
user_id=34209
This has already been fixed by making the except block
following the offending pieces of code also catch
'TypeError'. But thanks for the patch :-)