[equo] handle None values of input_box() too

This commit is contained in:
Fabio Erculiani
2010-02-03 08:42:52 +01:00
parent 5b6cc47baf
commit 4492b7ea38
+2
View File
@@ -447,6 +447,8 @@ def upgrade_packages(entropy_client, onlyfetch = False, replay = False,
_('Would you like to remove them?'),
input_params
)
if data is None:
return 0, 0
rc = data.get('answer', 2)[0]
if rc == 2: # no