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

isup: more specific errors #1950

Merged
merged 3 commits into from
Nov 21, 2020
Merged

isup: more specific errors #1950

merged 3 commits into from
Nov 21, 2020

Conversation

dgw
Copy link
Member

@dgw dgw commented Oct 1, 2020

Description

Follow-up to #1940, wherein @Exirel requested more specific error messages than just "seems down".

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

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.
@dgw dgw added the Tweak label Oct 1, 2020
@dgw dgw added this to the 7.1.0 milestone Oct 1, 2020
@dgw dgw requested a review from a team October 1, 2020 05:02
sopel/modules/isup.py Outdated Show resolved Hide resolved
Copy link
Contributor

@Exirel Exirel left a 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.

Copy link
Contributor

@Exirel Exirel left a 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!

sopel/modules/isup.py Show resolved Hide resolved
@lgtm-com
Copy link

lgtm-com bot commented Oct 2, 2020

This pull request introduces 1 alert when merging fc5d5ac into 54e4274 - view on LGTM.com

new alerts:

  • 1 for Unused local variable

@dgw dgw force-pushed the isup-more-specific-errors branch from fc5d5ac to 0059659 Compare October 2, 2020 17:09
Copy link
Contributor

@Exirel Exirel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 🎉

@dgw dgw merged commit b74329d into master Nov 21, 2020
@dgw dgw deleted the isup-more-specific-errors branch November 21, 2020 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants