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

Update TryExcept(msg='...')` #9261

Merged
merged 1 commit into from
Sep 2, 2022
Merged

Update TryExcept(msg='...')` #9261

merged 1 commit into from
Sep 2, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Sep 2, 2022

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improvement to error handling messages in Ultralytics YOLOv5.

πŸ“Š Key Changes

  • Removed default error message content, leaving an empty string.
  • Adjusted error and warning message formatting to include a space after custom message prefix.
  • TryExcept decorator and context manager updated to enhance clarity of error messages.

🎯 Purpose & Impact

  • These changes ensure error and warning messages are more readable and less confusing for users.
  • Developers can now supply more concise custom messages without a redundant default message getting in the way.
  • πŸš€ For users, this means clearer understanding of what went wrong, leading to easier troubleshooting and debugging.

@glenn-jocher glenn-jocher self-assigned this Sep 2, 2022
@glenn-jocher glenn-jocher merged commit 15e82d2 into master Sep 2, 2022
@glenn-jocher glenn-jocher deleted the tryexcept branch September 2, 2022 14:24
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
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