diff options
author | tkikuchi <> | 2004-09-16 08:06:43 +0000 |
---|---|---|
committer | tkikuchi <> | 2004-09-16 08:06:43 +0000 |
commit | 025365045aecefdd9768e8d18b3c562778e8a53c (patch) | |
tree | 6e500258f6846530cb5fdf2bb0fecf7c02861eb3 /Mailman/i18n.py | |
parent | ad7c9341ac1fdea05687a53beef1010a677e1e30 (diff) | |
download | mailman2-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.py | 2 |
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(':') |