diff options
author | siddharth <s@ricketyspace.net> | 2021-05-29 13:41:04 -0400 |
---|---|---|
committer | siddharth <s@ricketyspace.net> | 2021-05-29 13:41:04 -0400 |
commit | f26e84445734b919e2df5405245e5c27e1fad9e1 (patch) | |
tree | 75d5613b52ef808f0768ec4494ef856c6cac8486 /acmens.py | |
parent | 9c1f9273fefb4c064e772d7cf2aa140db2c44ca4 (diff) |
acmens.py: update `_agree_to`
Fix regex.
Diffstat (limited to 'acmens.py')
-rw-r--r-- | acmens.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,7 +25,7 @@ from urllib.request import urlopen from urllib.error import HTTPError -__version__ = "0.1.5-dev1" +__version__ = "0.1.5-dev2" CA_PRD = "https://acme-v02.api.letsencrypt.org" CA_STG = "https://acme-staging-v02.api.letsencrypt.org" @@ -234,7 +234,7 @@ def _agree_to(terms): ans = input( "\nDo you agree to the Let's Encrypt Subscriber Agreement\n({})? ".format(terms) ) - if re.search(r"[Yy]", ans) is None: + if re.search(r"^[Yy]", ans) is None: sys.stderr.write("Error: Cannot continue. Exiting.\n") sys.exit(1) |