Skip to content

Conversation

@qinguoyi
Copy link
Member

What this PR does / why we need it

When getting the file size, a try-except block is added to catch and handle possible OSError exceptions. This prevents the entire program from crashing due to file problems, such as file permission issues, files being deleted or moved, file system problems, etc.

Which issue(s) this PR fixes

None

Special notes for your reviewer

Does this PR introduce a user-facing change?

None

@InftyAI-Agent InftyAI-Agent added needs-triage Indicates an issue or PR lacks a label and requires one. needs-priority Indicates a PR lacks a label and requires one. do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Sep 24, 2024
@kerthcet
Copy link
Member

/kind bug
/lgtm
/approve

@InftyAI-Agent InftyAI-Agent added bug Categorizes issue or PR as related to a bug. lgtm Looks good to me, indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Sep 25, 2024
@InftyAI-Agent InftyAI-Agent merged commit b358d84 into InftyAI:main Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. bug Categorizes issue or PR as related to a bug. lgtm Looks good to me, indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a label and requires one. needs-triage Indicates an issue or PR lacks a label and requires one.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants