1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

Document use of email.utils parser

This commit is contained in:
Peter Eckersley
2016-02-16 11:13:10 -08:00
parent 7c8638f108
commit 7f2ca5d065

View File

@@ -262,6 +262,8 @@ class Client(object): # pylint: disable=too-many-instance-attributes
try:
seconds = int(retry_after)
except ValueError:
# The RFC 2822 parser handles all of RFC 2616's cases in modern
# environments (primarily HTTP 1.1+ but also py27+)
when = parsedate_tz(retry_after)
if when is not None:
try: