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

url: Wrap DNS resolution in try/except #2428

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

SnoopJ
Copy link
Contributor

@SnoopJ SnoopJ commented Mar 20, 2023

Description

This changeset adds a bit of caution to the DNS resolution that might happen in the [url] plugin, to fix #2348

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
    • 1370 passed, 8 xfailed, 1 warning in 52.60s

sopel/modules/url.py Fixed Show fixed Hide fixed
sopel/modules/url.py Outdated Show resolved Hide resolved
sopel/modules/url.py Outdated Show resolved Hide resolved
@dgw dgw changed the title Wrap DNS resolution in try/except url: Wrap DNS resolution in try/except Mar 20, 2023
@dgw dgw requested a review from Exirel March 20, 2023 15:02
Copy link
Member

@dgw dgw left a comment

Choose a reason for hiding this comment

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

I say it's squash season, and I say: Fire!

Co-authored-by: dgw <dgw@technobabbl.es>
Co-authored-by: Florian Strzelecki <florian.strzelecki@gmail.com>
@SnoopJ SnoopJ force-pushed the bugfix/gh2348_cautious-DNS-resolution branch from e81ff6a to a37f88a Compare March 20, 2023 15:07
@dgw dgw added the Bugfix Generally, PRs that reference (and fix) one or more issue(s) label Mar 23, 2023
@dgw dgw added this to the 8.0.0 milestone Mar 23, 2023
@dgw dgw merged commit c2db7eb into sopel-irc:master Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix Generally, PRs that reference (and fix) one or more issue(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

url: Unexpected error on nonexistent domains
3 participants