summaryrefslogtreecommitdiffstats
path: root/Lib/rfc822.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/rfc822.py')
-rw-r--r--Lib/rfc822.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py
index 430e637..0019949 100644
--- a/Lib/rfc822.py
+++ b/Lib/rfc822.py
@@ -858,6 +858,8 @@ def parsedate_tz(data):
Accounts for military timezones.
"""
+ if not data:
+ return None
data = data.split()
if data[0][-1] in (',', '.') or data[0].lower() in _daynames:
# There's a dayname here. Skip it