Skip to content

listdir添加异常捕获 - #7149

Open
renhj-git wants to merge 1 commit into
tensorflow:masterfrom
renhj-git:master
Open

listdir添加异常捕获#7149
renhj-git wants to merge 1 commit into
tensorflow:masterfrom
renhj-git:master

Conversation

@renhj-git

Copy link
Copy Markdown

如果目录不存在listdir抛出FileNotFoundError,后续处理没有捕获,导致进程崩溃,无法实时更新数据

Motivation for features / changes

Technical description of changes

Screenshots of UI changes (or N/A)

Detailed steps to verify changes work correctly (as executed by you)

Alternate designs / implementations considered (or N/A)

如果目录不存在listdir抛出FileNotFoundError,后续处理没有捕获,导致进程崩溃,无法实时更新数据
@google-cla

google-cla Bot commented Aug 20, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

1 participant