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 return value check for subprocess.run #10972

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

akx
Copy link
Contributor

@akx akx commented Feb 13, 2023

Subprocess.run does not return an integer.

Regressed in #10944

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhancing file download reliability in the YOLOv5 codebase.

πŸ“Š Key Changes

  • Modified the download script to use the process's return code for checking success.

🎯 Purpose & Impact

  • Purpose: To ensure that the success of the file download is accurately determined by checking the return code of the curl process rather than the process object itself.
  • Impact: Improves the reliability of file downloads within the utility scripts, potentially leading to fewer errors and more robust behavior for end-users when setting up YOLOv5 or downloading necessary files. πŸ› οΈ

Subprocess.run does not return an integer.

Regressed in ultralytics#10944
@glenn-jocher glenn-jocher merged commit 1a2eb53 into ultralytics:master Feb 13, 2023
@glenn-jocher
Copy link
Member

@akx PR is merged. Thank you for your contributions to YOLOv5 πŸš€ and Vision AI ⭐

Smfun12 pushed a commit to Smfun12/yolov5 that referenced this pull request Mar 24, 2023
Subprocess.run does not return an integer.

Regressed in ultralytics#10944
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.

None yet

2 participants