commit cd2faaa9587daa88e996d6466df60985181cc7e9
parent 6cb9f6a65e29773d88f0aaa27c1280ecc2f269b4
Author: Solderpunk <solderpunk@sdf.org>
Date: Sun, 10 May 2020 14:17:20 +0200
Fix input parsing bug.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/av98.py b/av98.py
@@ -266,7 +266,7 @@ class GeminiClient(cmd.Cmd):
if self.active_cert_domains and gi.host not in self.active_cert_domains:
print("PRIVACY ALERT: Deactivate client cert before connecting to a new domain?")
resp = input("Y/N? ")
- if resp.lower in ("n", "no"):
+ if resp.strip().lower() in ("n", "no"):
print("Keeping certificate active for {}".format(gi.host))
else:
print("Deactivating certificate.")