diff options
author | Andrii Nugged <nugged@gmail.com> | 2023-06-11 16:39:44 +0300 |
---|---|---|
committer | Slava Shishkin <slavashishkin@gmail.com> | 2023-06-13 14:00:31 +0300 |
commit | 5f97df1070cf0c2f65ad9a91ea30b699b347f455 (patch) | |
tree | 01b1684251c35cfa82861454d1975bc9c2d2d7be | |
parent | c64b4843861a23bd8c55d0bb5edfcfd9a6b762be (diff) | |
download | git-bz-5f97df1070cf0c2f65ad9a91ea30b699b347f455.tar.gz |
Prevent dies when empty line enteredgit-bz-python3_adaptation
-rwxr-xr-x | git-bz | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -941,9 +941,10 @@ def prompt(message): def prompt_multi(message, options): while True: line = input(f"{message} ") - opt = line[0].lower() - if opt in options: - return opt + if line: + opt = line[0].lower() + if opt in options: + return opt def die(message): |