mirror of
https://github.com/certbot/certbot.git
synced 2026-06-13 10:40:10 -04:00
Document use of email.utils parser
This commit is contained in:
parent
7c8638f108
commit
7f2ca5d065
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue