summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2021-05-29 13:48:21 -0400
committersiddharth <s@ricketyspace.net>2021-05-29 13:48:21 -0400
commit70b4a339dafd4c2fae1dcbe48d4fa69134398a9c (patch)
treefa31ed56c8d31e864c39052fa63e780b2f02aa52
parentf26e84445734b919e2df5405245e5c27e1fad9e1 (diff)
acmens.py: update `_agree_to`
Fix prompt. Send prompt text to stderr instead of stdout.
-rw-r--r--acmens.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/acmens.py b/acmens.py
index 9b4c2d9..f5233cf 100644
--- a/acmens.py
+++ b/acmens.py
@@ -231,9 +231,10 @@ Notes:
def _agree_to(terms):
"""Asks user whether they agree to the Let's Encrypt Subscriber
Agreement. It will immediately exit if user does not agree."""
- ans = input(
+ sys.stderr.write(
"\nDo you agree to the Let's Encrypt Subscriber Agreement\n({})? ".format(terms)
)
+ ans = input()
if re.search(r"^[Yy]", ans) is None:
sys.stderr.write("Error: Cannot continue. Exiting.\n")
sys.exit(1)