🌟 Summary
Improves Platform login reliability in Ultralytics 8.4.145 by reporting authentication and connection failures with a proper non-zero exit status, making command-line automation more dependable. ✅
📊 Key Changes
- 🔐 Login failures now exit with status 1
- Invalid API keys and rejected authentication requests now terminate with an error instead of only displaying a warning.
- Network and connection failures also return a failure status.
- 🧭 Consistent behavior across login commands
- The fix applies to both
yolo loginand delegatedul loginflows.
- The fix applies to both
- ✅ Successful operations are unchanged
- Successful login continues to exit normally and save credentials.
- Logout continues to clear credentials and return status 0.
- 📦 Version updated
- Package version increases from
8.4.144to8.4.145so the login fix is available through PyPI.
- Package version increases from
🎯 Purpose & Impact
- 🤖 Better automation: Scripts and CI pipelines can now reliably detect failed logins instead of mistakenly treating them as successful.
- 🛠️ Clearer error handling: Authentication and connectivity problems are surfaced as actual command failures while retaining the existing error messages.
- 🔄 Safer credential behavior: Failed login attempts do not overwrite valid saved credentials.
- 🚀 Release availability: Users installing
ultralytics==8.4.145receive the corrected login behavior.
What's Changed
- Return failure status from Platform login by @glenn-jocher in #26116
- Bump to 8.4.145 for login failure exit status by @glenn-jocher in #26117
Full Changelog: v8.4.144...v8.4.145