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

tld: fix regressions from type-hint cleanup #2491

Merged
merged 2 commits into from
Jul 17, 2023
Merged

tld: fix regressions from type-hint cleanup #2491

merged 2 commits into from
Jul 17, 2023

Conversation

dgw
Copy link
Member

@dgw dgw commented Jul 12, 2023

Description

Fix regressions in the tld plugin from #2471. Mea culpa…

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)
    • Not really relevant since these didn't cause test failures in the first place 😛
  • I have tested the functionality of the things this change touches
    • Before: .tldcache update spat an error into the bot log
    • After: .tldcache update yields DEBUG level log messages indicating success

Notes

Kinda broke the parser in 3ffe55c, then hid that error by breaking the data fetch too in c24dfa2 when I tried to get too smart with one-line statements.

dgw added 2 commits July 12, 2023 17:29
Can't return an attribute that's been deleted, can we? Indeed not.
dict.update() returns None, not the updated dict, so the requests.get()
call was passed params=None, leading the API to respond with an HTML
"MediaWiki API Help" page instead of the desired JSON-ized article.
@dgw dgw added Medium Priority Bugfix Generally, PRs that reference (and fix) one or more issue(s) labels Jul 12, 2023
@dgw dgw added this to the 8.0.0 milestone Jul 12, 2023
@dgw dgw requested a review from a team July 12, 2023 22:42
@dgw dgw merged commit 37e6249 into master Jul 17, 2023
8 checks passed
@dgw dgw deleted the tld-oopsies branch July 17, 2023 22:52
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) Medium Priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants