标签: python python-3.x exception
我想在捕获异常后调用函数并在try块中再次执行代码
示例
def set_creds(): # resets the credentials def connect(): try: # connect using credentials except CredentialsExpired: # here i want to call set_creds() and run try block again