enter body exit None None finished enter 1 exit <class 'ValueError'> error ValueError enter exit <class 'BaseException'> BaseException