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

Common connection errors result in tracebacks #2111

Closed
dgw opened this issue Jun 20, 2021 · 0 comments · Fixed by #2430
Closed

Common connection errors result in tracebacks #2111

dgw opened this issue Jun 20, 2021 · 0 comments · Fixed by #2430

Comments

@dgw
Copy link
Member

dgw commented Jun 20, 2021

Inexperienced users simply don't have the patience and/or knowledge to dig through Sopel's output and find the cause of a connection error (e.g. #2110). They may blame Sopel for things that are outside of its control, maybe even their own fault.

It would be useful if Sopel could catch a limited set of connection problems and nudge users in the right direction. Stuff like:

  • Invalid/expired SSL certificate
  • Invalid address
  • Hostname not found
  • Connection timeout (I think this is already handled)

Of course the actual exception and traceback should still make its way to the exception log, but for purposes of user-friendliness—we claim to be a "simple" and "easy-to-use" bot, after all—terminating execution with a clear error description instead of a traceback pointing through Sopel's internals into Python stdlib code would be a good step forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants