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

search query on empty string #200

Open
nhomble opened this issue Dec 3, 2018 · 0 comments
Open

search query on empty string #200

nhomble opened this issue Dec 3, 2018 · 0 comments

Comments

@nhomble
Copy link

nhomble commented Dec 3, 2018

query = ''
search = wikipedia.search(query)

raw_results.error.info = The "srsearch" parameter must be set
which leads to a WikipediaException
Does is ever make sense to allow empty string? Should the library preemptively block the api call to wikipedia in this case and avoid an unknown exception that recommends we raise a github issue?

using wikipedia-1.4.0

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

No branches or pull requests

1 participant