summaryrefslogtreecommitdiffstats
path: root/Lib/rfc822.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/rfc822.py')
-rw-r--r--Lib/rfc822.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py
index 2e97ef4..b466fae 100644
--- a/Lib/rfc822.py
+++ b/Lib/rfc822.py
@@ -800,8 +800,10 @@ def parsedate_tz(data):
if len(tm) == 2:
[thh, tmm] = tm
tss = '0'
- else:
+ elif len(tm) == 3:
[thh, tmm, tss] = tm
+ else:
+ return None
try:
yy = string.atoi(yy)
dd = string.atoi(dd)