From bbf7182fbf078960cd2046c837dc587dfcdc3d3d Mon Sep 17 00:00:00 2001 From: Peng Zhihui Date: Tue, 17 Jun 2014 17:14:15 +0800 Subject: [PATCH] Fix problems with configure mountpoint when auto install: 1. configure root mountpoint ok and and just press Enter when the focus on no button, errors occur. modified: text/auto_install.py --- text/auto_install.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/text/auto_install.py b/text/auto_install.py index dd922cb..f187fc8 100644 --- a/text/auto_install.py +++ b/text/auto_install.py @@ -41,11 +41,13 @@ while True : elif list[count] == 'mountpoint': ri_newt.MountPoint() s = ri_newt.Screen.dict[list[count]].set_data() - - if int(s) == 0: - count = count + 1 - else: - count = count - 1 + try: + if int(s) == 0: + count = count + 1 + else: + count = count - 1 + except: + pass if count < 0 or count > len(list) - 1: try: