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

Return exact page title match instead of suggestion if it exists. #310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wlerin
Copy link

@wlerin wlerin commented Jun 29, 2022

Fixes #279 and related.

There are already at least four proposed fixes to this bug ( #305 #297 #287 #253 ), but none of them quite succeed so here's a fourth attempt. Of course, considering the maintainer hasn't been seen since 2018 I doubt there's going to be any movement on any of them.

@wlerin wlerin changed the title Return exact page title match instead of summary if it exists. Fixes #279 and related Return exact page title match instead of summary if it exists. Jun 29, 2022
@wlerin wlerin changed the title Return exact page title match instead of summary if it exists. Return exact page title match instead of suggestion if it exists. Jun 29, 2022
@theptrk
Copy link

theptrk commented Aug 21, 2024

This should be merged

@theptrk
Copy link

theptrk commented Aug 21, 2024

There could probably still be an issue
If results was empty and suggestions is empty you dont raise the correct error

        # if there is no suggestion or search results, the page doesn't exist
        raise PageError(title)

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

Successfully merging this pull request may close these issues.

error when getting a word's summary
2 participants