Skip to content

Conversation

openvino-book
Copy link
Collaborator

add exception handler to file open

add exception handler to file open
Copy link

paddle-bot bot commented Feb 11, 2025

Thanks for your contribution!

@jingsongliujing
Copy link
Collaborator

我觉得在框架代码中用try except是不合理的,虽然可以捕捉异常,但是他捕捉的异常有点宽泛,容易掩盖真正的异常,像这种异常还可能是FileNotFoundError、PermissionError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants