Multichill created this task.
Multichill added a subscriber: Multichill.
Multichill added projects: pywikibot-core, Pywikibot-pagegenerators.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  So I was working on matching some painters and I hit a search error
  ```
  Traceback (most recent call last):
    File "C:\pywikibot\coredev\painting_add_creator.py", line 315, in <module>
      main()
    File "C:\pywikibot\coredev\painting_add_creator.py", line 310, in main
      paintingBot.run()
    File "C:\pywikibot\coredev\painting_add_creator.py", line 154, in run
      creatorItem = self.getCreator(creator)
    File "C:\pywikibot\coredev\painting_add_creator.py", line 196, in getCreator
      for creatoritem in creategen:
    File "C:\pywikibot\coredev\pywikibot\pagegenerators.py", line 1619, in 
Preload
  ingItemGenerator
      for page in generator:
    File "C:\pywikibot\coredev\pywikibot\pagegenerators.py", line 1674, in 
Wikibas
  eItemGenerator
      for page in gen:
    File "C:\pywikibot\coredev\pywikibot\pagegenerators.py", line 1998, in 
SearchP
  ageGenerator
      namespaces=namespaces):
    File "C:\pywikibot\coredev\pywikibot\data\api.py", line 2265, in __iter__
      self.data = self.request.submit()
    File "C:\pywikibot\coredev\pywikibot\data\api.py", line 1734, in submit
      raise APIError(**result['error'])
  pywikibot.data.api.APIError: gsrsearch-error: Search is currently too busy.  
Ple
  ase try again later.
  <class 'pywikibot.data.api.APIError'>
  CRITICAL: Closing network session.
  ```
  Would be nicer to have error handling for the gsrsearch-error errors. When 
hit, it should probably wait and try later for maxtries just like other 
functions in pywikibot.

TASK DETAIL
  https://phabricator.wikimedia.org/T110572

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Multichill
Cc: Aklapper, pywikibot-bugs-list, Multichill, jayvdb, Malyacko



_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to