Steps to reproduce
- Try pywikibot.Site('wikimania', 'wikimania').search('hello')
Expected behavior
Should work fine.
Current behavior
Fails with the following error:
WARNING: API error toomanyvalues: Too many values supplied for parameter "gsrnamespace". The limit is 50.
If we ask API for namespaces automatically and then try to search wikimania using API:Search, this is not expected.