-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
isup: more specific errors #1950
Conversation
Specified timeout values, both to improve response time of the command and to make the connect/read timeout errors relevant. (By default, all we'd get is a generic connection error.) The general `RequestException` is no longer considered as a hard "down". Catching all of the relevant sub-types means something truly strange has to happen in order for none of the `except` clauses to match. Sopel's general exception handling is fine for that, since any occurrences of that should be reported as possible bugs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small nitpick you can fix, but it's good to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, a small nitpick to fix!
This pull request introduces 1 alert when merging fc5d5ac into 54e4274 - view on LGTM.com new alerts:
|
Simplifies handler function (flattens the logic a bit).
fc5d5ac
to
0059659
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 🎉
Description
Follow-up to #1940, wherein @Exirel requested more specific error messages than just "seems down".
Checklist
make qa
(runsmake quality
andmake test
)