Commit 7e185197 authored by ibuler's avatar ibuler

Merge branch 'sh'

parents 2e2b065c 5e86b06d
...@@ -800,7 +800,9 @@ def main(): ...@@ -800,7 +800,9 @@ def main():
color_print('请输入正确ID', 'red') color_print('请输入正确ID', 'red')
except ServerError, e: except ServerError, e:
color_print(e, 'red') color_print(e, 'red')
except IndexError: except Exception, e:
color_print(e)
time.sleep(5)
pass pass
if __name__ == '__main__': if __name__ == '__main__':
......
...@@ -127,8 +127,11 @@ class PreSetup(object): ...@@ -127,8 +127,11 @@ class PreSetup(object):
smtp.quit() smtp.quit()
return True return True
except (SMTPAuthenticationError, socket.timeout, socket.gaierror, SMTPSenderRefused, SMTPConnectError), e: except Exception, e:
color_print(e, 'red') color_print(e, 'red')
skip = raw_input('是否跳过(y/n) [n]? : ')
if skip == 'y':
return True
return False return False
@staticmethod @staticmethod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment