diff options
-rwxr-xr-x | siglog-witness.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/siglog-witness.py b/siglog-witness.py index 4eebca5..704f989 100755 --- a/siglog-witness.py +++ b/siglog-witness.py @@ -327,7 +327,8 @@ def ensure_sigkey(fn): return signing_key, None def user_confirm(prompt): - if input(prompt + ' y/n> ').lower()[0] == 'y': + resp = input(prompt + ' y/n> ').lower() + if resp and resp[0] == 'y': return True return False |