[entropy.client] while asking to accept the license, interpret EOF as "no"

Otherwise it would loop indefinitely (bug 4849).
This commit is contained in:
Sławomir Nizio
2015-05-16 00:01:55 +02:00
parent d92c7ca45c
commit 1bda075ad0
+6 -1
View File
@@ -765,8 +765,13 @@ class SoloManage(SoloCommand):
while True:
action = _read_lic_selection()
if action is None:
# interpret EOF as "reject"
return 1
try:
choice = int(_read_lic_selection())
choice = int(action)
except (ValueError, TypeError):
continue