Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:catch os error #174

Merged
merged 1 commit into from
Sep 25, 2024
Merged

fix:catch os error #174

merged 1 commit into from
Sep 25, 2024

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
42 of 44 checks passed
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