aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortkikuchi <>2004-09-16 08:06:43 +0000
committertkikuchi <>2004-09-16 08:06:43 +0000
commit025365045aecefdd9768e8d18b3c562778e8a53c (patch)
tree6e500258f6846530cb5fdf2bb0fecf7c02861eb3
parentad7c9341ac1fdea05687a53beef1010a677e1e30 (diff)
downloadmailman2-025365045aecefdd9768e8d18b3c562778e8a53c.tar.gz
mailman2-025365045aecefdd9768e8d18b3c562778e8a53c.tar.xz
mailman2-025365045aecefdd9768e8d18b3c562778e8a53c.zip
Python2.1 on BSD/OS 4.1 returns AttributeError for strptime.
Diffstat (limited to '')
-rw-r--r--Mailman/i18n.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/i18n.py b/Mailman/i18n.py
index c5853438..52bce730 100644
--- a/Mailman/i18n.py
+++ b/Mailman/i18n.py
@@ -108,7 +108,7 @@ def ctime(date):
try:
year, mon, day, hh, mm, ss, wday, ydat, dst = time.strptime(date)
tzname = time.tzname[dst and 1 or 0]
- except ValueError:
+ except (ValueError, AttributeError):
try:
wday, mon, day, hms, year = date.split()
hh, mm, ss = hms.split(':')