-
Notifications
You must be signed in to change notification settings - Fork 1
Remove raise override #97
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
Conversation
WalkthroughAdjusts login exception handling in airos/base.py to catch only AirOSConnectionSetupError, letting authentication errors propagate differently. Updates project version from 0.5.2 to 0.5.3 in pyproject.toml. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant Base as Base.login()
participant AirOS as AirOS Device
Client->>Base: login(credentials)
Base->>AirOS: establish_session()
alt Success
AirOS-->>Base: session established
Base-->>Client: return session
else Failure
AirOS-->>Base: error
opt New handling
Note over Base: Catch only AirOSConnectionSetupError
Base-->>Client: raise AirOSConnectionSetupError
end
opt Authentication error
Note over Base: AirOSConnectionAuthenticationError propagates
Base-->>Client: raise AirOSConnectionAuthenticationError
end
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (1)airos/base.py (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #97 +/- ##
=======================================
Coverage 91.85% 91.85%
=======================================
Files 7 7
Lines 909 909
=======================================
Hits 835 835
Misses 74 74 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|



Summary by CodeRabbit
Note: End users may notice more uniform error behavior when login fails, but no functional changes are expected in normal operation.