diff options
| author | siddharth <s@ricketyspace.net> | 2021-05-29 13:48:21 -0400 | 
|---|---|---|
| committer | siddharth <s@ricketyspace.net> | 2021-05-29 13:48:21 -0400 | 
| commit | 70b4a339dafd4c2fae1dcbe48d4fa69134398a9c (patch) | |
| tree | fa31ed56c8d31e864c39052fa63e780b2f02aa52 | |
| parent | f26e84445734b919e2df5405245e5c27e1fad9e1 (diff) | |
acmens.py: update `_agree_to`
Fix prompt. Send prompt text to stderr instead of stdout.
| -rw-r--r-- | acmens.py | 3 | 
1 files changed, 2 insertions, 1 deletions
| @@ -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) | 
