Skip to content

Commit d8be1c0

Browse files
When user answers "n" or receives no suggestions, remaining search terms are still handled
Co-authored-by: Wu Tingfeng <[email protected]>
1 parent e40fdc2 commit d8be1c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/norwegianblue/cli.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,12 @@ def main() -> None:
143143
prompt = colored(prompt, "yellow")
144144
if not suggestion:
145145
print(prompt)
146-
sys.exit()
146+
print()
147+
continue
147148
answer = input(prompt)
148149
if answer not in ("", "y", "Y"):
149-
sys.exit()
150+
print()
151+
continue
150152
output = norwegianblue.norwegianblue(
151153
product=suggestion,
152154
format=args.formatter,

0 commit comments

Comments
 (0)