Bug ID: 62126
           Summary: Make Pywikibot not crash on new item creation bug
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Wikidata
       Web browser: ---
   Mobile Platform: ---

See . Everyone once in a
while you'll get an apierror when trying to create a new page:

  File "C:\pywikibot\core\pywikibot\", line 2523, in editEntity
    baserevid=baserevid, **kwargs)
  File "C:\pywikibot\core\pywikibot\", line 721, in callee
    return fn(self, *args, **kwargs)
  File "C:\pywikibot\core\pywikibot\", line 3725, in editEntity
    data = req.submit()
  File "C:\pywikibot\core\pywikibot\data\", line 401, in submit
    raise APIError(code, info, **result["error"]) failed-save: Could not create a new page.
It already exists.
<class ''>

Error should be caught somewhere in the lower layers and it should be retried
(just like with connection problems). It should respect maxretries so it
doesn't get stuck in a loop

You are receiving this mail because:
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to