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

check_git_status() bug fix #1660

Merged
merged 1 commit into from
Jan 13, 2021
Merged

check_git_status() bug fix #1660

merged 1 commit into from
Jan 13, 2021

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Jan 13, 2021

Fix for UnboundLocalError: local variable 's' referenced before assignment.

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved code readability and exception handling in the check_git_status function.

πŸ“Š Key Changes

  • Removed unnecessary assignment of the exception message to a variable before printing.
  • Corrected indentation for a user message related to updating the repository.

🎯 Purpose & Impact

  • 🎨 Enhances clarity of the code by simplifying exception handling, making it easier for developers to read and maintain.
  • πŸ”„ Ensures users receive clear instructions on how to update their local repository if it falls behind the origin master branch.

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.

labels4.append(labels) UnboundLocalError: local variable 'labels' referenced before assignment
1 participant