From b1a36bbb11327023f7a5ba3e4b7ed61b50e9b0ae Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 31 Dec 2015 16:35:17 +0800 Subject: [PATCH] fix --- install/install.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install/install.py b/install/install.py index 34f771284..5552d3c20 100755 --- a/install/install.py +++ b/install/install.py @@ -127,8 +127,11 @@ class PreSetup(object): smtp.quit() return True - except (SMTPAuthenticationError, socket.timeout, socket.gaierror, SMTPSenderRefused, SMTPConnectError), e: + except Exception, e: color_print(e, 'red') + skip = raw_input('是否跳过(y/n) [n]? : ') + if skip == 'y': + return True return False @staticmethod