From cd2faaa9587daa88e996d6466df60985181cc7e9 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Sun, 10 May 2020 14:17:20 +0200 Subject: [PATCH] Fix input parsing bug. --- av98.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av98.py b/av98.py index ccec051..2600e0e 100755 --- 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.")