while i < 3:
try:
time.sleep(60) #这里放你要执行的代码
raise NameError('HiThere') #抛出异常做测试
except Exception as e: #异常处理
pass #这里是异常后执行的语句
continue #重新进入下次循环
https://www.runoob.com/python3/python3-errors-execptions.html
