summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2021-05-29 13:41:04 -0400
committersiddharth <s@ricketyspace.net>2021-05-29 13:41:04 -0400
commitf26e84445734b919e2df5405245e5c27e1fad9e1 (patch)
tree75d5613b52ef808f0768ec4494ef856c6cac8486
parent9c1f9273fefb4c064e772d7cf2aa140db2c44ca4 (diff)
acmens.py: update `_agree_to`
Fix regex.
-rw-r--r--acmens.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/acmens.py b/acmens.py
index 38eac6d..9b4c2d9 100644
--- a/acmens.py
+++ b/acmens.py
@@ -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)