https://bugzilla.wikimedia.org/show_bug.cgi?id=62126

            Bug ID: 62126
           Summary: Make Pywikibot not crash on new item creation bug
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
               URL: https://bugzilla.wikimedia.org/show_bug.cgi?id=46535
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Wikidata
          Assignee: pywikipedia-b...@lists.wikimedia.org
          Reporter: maar...@mdammers.nl
       Web browser: ---
   Mobile Platform: ---

See https://bugzilla.wikimedia.org/show_bug.cgi?id=46535 . Everyone once in a
while you'll get an apierror when trying to create a new page:

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

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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to